decord/source/utils/native/ChangeLogUtils.tsx

183 lines
6.3 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 7810
// Function ID: 62007
2026-07-20 16:05:17 +00:00
// Name: ChangeLogLink
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 4131, 689, 4974, 4563, 4127, 3830, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 7810 (ChangeLogLink)
2026-07-23 10:11:24 +00:00
import "result";
import get_ActivityIndicator from "get ActivityIndicator";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import importAllResult1 from "_createForOfIteratorHelperLoose";
let closure_3;
let closure_4;
const require = arg1;
2026-07-20 16:05:17 +00:00
function ChangeLogLink(arg0) {
let node;
let output;
let state;
let styling;
({ node, state } = arg0);
({ output, styling } = arg0);
2026-07-23 10:11:24 +00:00
let obj = { className: _createForOfIteratorHelperLoose().link, target: node.target };
2026-07-20 16:05:17 +00:00
obj = {};
const merged = Object.assign(state);
obj["inLink"] = true;
obj.children = output(node.content, obj);
2026-07-23 10:11:24 +00:00
return jsx(styling.components.Link, {}, state.key);
2026-07-20 16:05:17 +00:00
}
function ChangeLogList(styling) {
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let state;
2026-07-23 10:11:24 +00:00
({ output: require, state } = styling);
2026-07-20 16:05:17 +00:00
styling = styling.styling;
let List = styling.components.List;
if (!List) {
List = closure_3;
}
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
let items = styling.node.items;
return <List key={state.key} style={_createForOfIteratorHelperLoose().list}>{items.map((arg0, arg1) => {
let closure_0 = arg0;
return outer1_5(styling.components.ListItem, {
children(arg0) {
return (function processListItem(closure_0, closure_02, outer1_1, arg3) {
closure_0 = closure_02;
let closure_1 = outer1_1;
let closure_2 = arg3;
function renderText() {
if (arr.length > 0) {
const obj = { variant: "text-sm/normal" };
const merged = Object.assign(closure_2);
obj["children"] = callback(arr, closure_1);
2026-07-24 07:16:23 +00:00
arr = items.push(outer4_5(outer4_0(styling[7]).Text, obj, -1));
2026-07-23 10:11:24 +00:00
arr = [];
}
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const items = [];
let closure_4 = [];
const item = closure_0.forEach((type) => {
if ("list" === type.type) {
renderText();
const obj = { children: callback(type, closure_1) };
let arr = items.push(outer4_5(outer4_3, obj, arg1));
} else {
arr = arr.push(type);
}
});
renderText();
return items;
})(closure_0, closure_0, outer1_1, arg0);
}
}, arg1);
})}</List>;
2026-07-20 16:05:17 +00:00
}
function ChangeLogParagraph(state) {
let node;
let output;
let styling;
state = state.state;
({ node, output, styling } = state);
const components = styling.components;
let Paragraph;
if (null != components) {
Paragraph = components.Paragraph;
}
if (null == Paragraph) {
2026-07-25 08:10:48 +00:00
Paragraph = require(4127) /* Text */.Text;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
return <Paragraph key={state.key} variant="text-sm/normal" style={_createForOfIteratorHelperLoose().text}>{output(node.content, state)}</Paragraph>;
2026-07-20 16:05:17 +00:00
}
function ChangeLogImage(arg0) {
let node;
let state;
({ node, state } = arg0);
2026-07-23 10:11:24 +00:00
let obj = { style: _createForOfIteratorHelperLoose().image };
2026-07-25 08:10:48 +00:00
obj = { uri: importDefault(3830).sanitizeUrl(node.target) };
2026-07-20 16:05:17 +00:00
obj.source = obj;
2026-07-25 08:10:48 +00:00
return <closure_4 key={state.key} uri={importDefault(3830).sanitizeUrl(node.target)} />;
2026-07-20 16:05:17 +00:00
}
function ChangeLogBlockQuote(state) {
let node;
let output;
state = state.state;
({ node, output } = state);
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
2026-07-20 16:05:17 +00:00
let obj = { style: tmp.container };
obj = { variant: "text-sm/normal", style: tmp.text, children: output(node.content, state) };
2026-07-25 08:10:48 +00:00
obj.children = jsx(require(4127) /* Text */.Text, { variant: "text-sm/normal", style: tmp.text, children: output(node.content, state) });
2026-07-23 10:11:24 +00:00
return <closure_3 key={state.key} variant="text-sm/normal" style={tmp.text}>{output(node.content, state)}</closure_3>;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
({ View: closure_3, Image: closure_4 } = get_ActivityIndicator);
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { color: require("_createForOfIteratorHelperLoose").colors.TEXT_LINK };
_createForOfIteratorHelperLoose.link = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose.list = { marginBottom: 10 };
_createForOfIteratorHelperLoose.image = { alignSelf: "center", flex: 1 };
const obj1 = { borderLeftWidth: 2, paddingLeft: 8, marginBottom: 10, borderLeftColor: require("result").DARK_PRIMARY_500_LIGHT_PRIMARY_300 };
_createForOfIteratorHelperLoose.container = obj1;
const obj2 = { fontSize: 14, lineHeight: 18, marginBottom: 8, color: require("_createForOfIteratorHelperLoose").colors.TEXT_MUTED };
_createForOfIteratorHelperLoose.text = obj2;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const rules = require("_createForOfIteratorHelperLoose").createRules({});
2026-07-20 16:05:17 +00:00
const obj3 = {
link(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return {
react(node, output, state) {
2026-07-23 10:11:24 +00:00
return outer1_5(outer1_7, { accessibilityRole: "link", node, output, state, styling: closure_0 });
2026-07-20 16:05:17 +00:00
}
};
},
lheading(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return {
react(className, arg1, key) {
2026-07-23 10:11:24 +00:00
return outer1_5(components.components.LHeading, { className: className.className, children: arg1(className.content, key) }, key.key);
2026-07-20 16:05:17 +00:00
}
};
},
heading(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return {
react(className, arg1, key) {
2026-07-23 10:11:24 +00:00
return outer1_5(components.components.Heading, { className: className.className, level: className.level, children: arg1(className.content, key) }, key.key);
2026-07-20 16:05:17 +00:00
}
};
},
list(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return {
react(node, output, state) {
2026-07-23 10:11:24 +00:00
return outer1_5(outer1_8, { node, output, state, styling: closure_0 });
2026-07-20 16:05:17 +00:00
}
};
},
image: obj4,
blockQuote: obj5,
paragraph(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return {
react(node, output, state) {
2026-07-23 10:11:24 +00:00
return outer1_5(outer1_9, { node, output, state, styling: closure_0 });
2026-07-20 16:05:17 +00:00
}
};
}
};
2026-07-23 10:11:24 +00:00
obj4 = {
2026-07-20 16:05:17 +00:00
react(node, output, state) {
return <ChangeLogImage node={arg0} output={arg1} state={arg2} />;
}
};
2026-07-23 10:11:24 +00:00
obj5 = {
2026-07-20 16:05:17 +00:00
react(node, output, state) {
return <ChangeLogBlockQuote node={arg0} output={arg1} state={arg2} />;
}
};
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("utils/native/ChangeLogUtils.tsx");
2026-07-20 16:05:17 +00:00
export const baseRules = rules;
export const customRules = obj3;