decord/source/components_native/ChangeLogStandardTemplate.tsx

265 lines
10 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8343
// Function ID: 8344
2026-07-20 16:05:17 +00:00
// Name: LHeading
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 1996, 676, 21, 712, 4380, 1297, 647, 8344, 698, 4094, 4096, 8346, 4370, 5434, 7896, 8350, 1236, 4009, 8352, 8354, 2]
2026-07-29 08:29:29 +00:00
// Exports: changelogRules, getRenderChangelog
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 8343 (LHeading)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
2026-08-25 06:04:03 +00:00
import get_defaultRulesDefault from "get defaultRules" /* 4370 */;
import defaultRulesDefault from "defaultRules" /* 8346 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import closure_6 from "_getSystemLocale" /* 1996 */;
2026-08-24 06:08:38 +00:00
import ME from "ME" /* 676 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
function LHeading(children) {
2026-08-24 06:08:38 +00:00
obj = { style: callback2().lheading, children: null };
2026-07-29 08:29:29 +00:00
let _require = true;
let combined;
if (null != children.className) {
const parts = str.split(" ");
const mapped = parts.map((arg0) => {
if ("marginTop" === arg0) {
2026-08-24 06:08:38 +00:00
obj = { marginTop: 10 };
2026-07-29 08:29:29 +00:00
} else if (c0) {
obj = { color: null };
2026-08-24 06:08:38 +00:00
obj[0] = closure_1_12[arg0];
2026-07-29 08:29:29 +00:00
} else {
obj = { backgroundColor: null };
2026-08-24 06:08:38 +00:00
obj[0] = closure_1_12[arg0];
2026-07-29 08:29:29 +00:00
}
return obj;
});
combined = mapped.concat(tmp5);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items = [closure_10(_require(1297).LegacyText, { accessibilityRole: "header", style: combined, children: children.children }), ];
_require = false;
let combined1;
if (null != children.className) {
const parts1 = str.split(" ");
const mapped1 = parts1.map((arg0) => {
if ("marginTop" === arg0) {
2026-08-24 06:08:38 +00:00
obj = { marginTop: 10 };
2026-07-29 08:29:29 +00:00
} else if (c0) {
obj = { color: null };
2026-08-24 06:08:38 +00:00
obj[0] = closure_1_12[arg0];
2026-07-29 08:29:29 +00:00
} else {
obj = { backgroundColor: null };
2026-08-24 06:08:38 +00:00
obj[0] = closure_1_12[arg0];
2026-07-29 08:29:29 +00:00
}
return obj;
});
combined1 = mapped1.concat(tmp7);
}
items[1] = closure_10(closure_4, { style: combined1 });
obj[1] = items;
return closure_11(closure_4, obj);
2026-07-20 16:05:17 +00:00
}
function LinkInner(target) {
2026-07-23 10:11:24 +00:00
target = target.target;
2026-07-29 08:29:29 +00:00
let changelog;
2026-07-20 16:05:17 +00:00
({ changelogId, className, children } = target);
2026-08-24 06:08:38 +00:00
obj = target(647);
const items = [closure_6];
2026-07-29 08:29:29 +00:00
const stateFromStores = obj.useStateFromStores(items, () => locale.locale);
2026-08-25 06:04:03 +00:00
changelog = target(8344).useChangelog(changelogId, stateFromStores).changelog;
2026-07-20 16:05:17 +00:00
obj = {
accessibilityRole: "link",
style: className,
onPress() {
2026-08-24 06:08:38 +00:00
obj = changelog(closure_1_2[10]);
2026-07-20 16:05:17 +00:00
let date;
2026-07-29 08:29:29 +00:00
if (changelog != null) {
date = tmp3.date;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (date == null) {
2026-07-20 16:05:17 +00:00
const _Date = Date;
const str = new Date();
date = str.toString();
}
2026-07-29 08:29:29 +00:00
let num;
if (changelog != null) {
num = tmp3.revision;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { change_log_id: "" + date + ":" + num, cta_type: "inline_link", target };
2026-08-24 06:08:38 +00:00
obj.track(closure_1_9.CHANGE_LOG_CTA_CLICKED, obj);
2026-07-29 08:29:29 +00:00
const tmp = changelog;
2026-08-24 06:08:38 +00:00
const tmpResult = changelog(closure_1_2[11]);
tmpResult.openURL(target(closure_1_2[12]).sanitizeUrl(target));
2026-07-20 16:05:17 +00:00
},
children
};
2026-07-29 08:29:29 +00:00
return callback(target(1297).LegacyText, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
({ View: c4, ScrollView: c5, StyleSheet } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
({ LocalizedLinks: error, SOCIAL_LINKS: closure_8, AnalyticEvents: c9, Fonts } = ME);
2026-07-29 08:29:29 +00:00
({ jsx: c10, jsxs: unpackModuleId } = jsxProd);
2026-08-24 06:08:38 +00:00
let obj = { added: ThemesDefault.unsafe_rawColors.GREEN_360, fixed: ThemesDefault.unsafe_rawColors.RED_400, progress: ThemesDefault.unsafe_rawColors.YELLOW_300, improved: ThemesDefault.unsafe_rawColors.BRAND_500 };
obj = { flex: { flex: 1 }, container: { padding: 18, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW }, footer: null, scrollViewContainer: null, lheading: null, lheadingText: null, lheadingLine: null, bulletPoint: null, listItem: null, listText: null };
createCacheKey = { flexDirection: "row", justifyContent: "center", borderTopWidth: StyleSheet.hairlineWidth, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH, borderTopColor: ThemesDefault.colors.BORDER_STRONG, gap: ThemesDefault.space.PX_12, paddingHorizontal: 18, paddingVertical: ThemesDefault.space.PX_12 };
2026-07-29 08:29:29 +00:00
obj[2] = createCacheKey;
obj[3] = { flex: 1 };
obj[4] = { marginBottom: 14, flexDirection: "row", alignItems: "center" };
obj[5] = { fontSize: 16, fontFamily: Fonts.PRIMARY_SEMIBOLD };
obj[6] = { flexGrow: 1, flexShrink: 1, flexBasis: "auto", marginLeft: 10, height: 2 };
2026-08-24 06:08:38 +00:00
let obj1 = { padding: 18, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW };
obj[7] = { width: 7, height: 7, borderRadius: 3.5, marginRight: 13, marginTop: 7, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_STRONG };
2026-07-29 08:29:29 +00:00
obj[8] = { flexDirection: "row", marginLeft: 4, marginBottom: 8 };
2026-08-24 06:08:38 +00:00
let obj3 = { width: 7, height: 7, borderRadius: 3.5, marginRight: 13, marginTop: 7, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_STRONG };
obj[9] = { color: ThemesDefault.colors.TEXT_DEFAULT, fontSize: 14, lineHeight: 18, flex: 1 };
2026-07-29 08:29:29 +00:00
let closure_13 = createCacheKey.createStyles(obj);
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo((children) => {
children = children.children;
2026-07-29 08:29:29 +00:00
const tmp = callback2();
2026-08-24 06:08:38 +00:00
obj = { style: tmp.listItem, children: null };
2026-07-20 16:05:17 +00:00
obj = { style: tmp.bulletPoint };
const items = [callback(closure_4, obj), ];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.listText, children: null };
2026-07-20 16:05:17 +00:00
let childrenResult = children;
2026-08-04 21:03:28 +00:00
if (typeof children === "function") {
2026-08-24 06:08:38 +00:00
obj1 = { style: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.listText;
2026-07-20 16:05:17 +00:00
childrenResult = children(obj1);
}
2026-07-29 08:29:29 +00:00
obj[1] = childrenResult;
2026-07-20 16:05:17 +00:00
items[1] = callback(closure_4, obj);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return closure_11(closure_4, obj);
});
2026-08-24 06:08:38 +00:00
let obj4 = { color: ThemesDefault.colors.TEXT_DEFAULT, fontSize: 14, lineHeight: 18, flex: 1 };
2026-07-20 16:05:17 +00:00
const memoResult1 = importAllResult.memo((video) => {
({ changeLog, onScroll } = video);
2026-07-29 08:29:29 +00:00
let id = onScroll;
const tmp = callback2();
2026-07-20 16:05:17 +00:00
const items = [onScroll];
2026-08-24 06:08:38 +00:00
obj = { style: tmp.flex, children: null };
2026-07-20 16:05:17 +00:00
obj = {
contentContainerStyle: tmp.container,
style: tmp.scrollViewContainer,
onScroll: importAllResult.useCallback((nativeEvent) => {
2026-07-29 08:29:29 +00:00
id(nativeEvent.nativeEvent);
2026-07-20 16:05:17 +00:00
}, items),
2026-07-29 08:29:29 +00:00
scrollEventThrottle: 3,
children: null
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
const items1 = [video.video, ];
2026-08-24 06:08:38 +00:00
let obj2 = get_defaultRulesDefault;
2026-07-29 08:29:29 +00:00
id = changeLog.id;
2026-08-24 06:08:38 +00:00
let obj3 = defaultRulesDefault;
2026-07-29 08:29:29 +00:00
{
obj = { components: null };
2026-08-24 06:08:38 +00:00
obj1 = { Link: null, ListItem: null, LHeading: null, Heading: null };
2026-07-29 08:29:29 +00:00
obj1[0] = (arg0) => {
2026-08-24 06:08:38 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(arg0);
obj.changelogId = id;
2026-08-24 06:08:38 +00:00
return closure_1_10(closure_1_16, obj);
2026-07-29 08:29:29 +00:00
};
obj1[1] = closure_15;
obj1[2] = LHeading;
obj1[3] = LHeading;
obj[0] = obj1;
const defaultRules = obj3.getDefaultRules(obj);
}
items1[1] = obj2.reactParserFor(defaultRules)(changeLog.body, false);
obj[4] = items1;
const items2 = [closure_11(closure_5, obj), ];
obj2 = { bottom: true, style: tmp.footer, children: null };
2026-08-25 06:04:03 +00:00
obj3 = { size: "sm", variant: "tertiary", accessibilityRole: "link", icon: callback(id(8350).XNeutralIcon, { size: "sm", color: "interactive-icon-default" }), accessibilityLabel: null, onPress: null };
2026-07-29 08:29:29 +00:00
const intl = id(1236).intl;
obj3[4] = intl.string(id(1236).t["/lXfom"]);
obj3[5] = function onPress() {
2026-08-25 06:04:03 +00:00
callback(4094).openURL(callback(4009)(constants.TWITTER));
2026-07-20 16:05:17 +00:00
};
2026-08-25 06:04:03 +00:00
const items3 = [callback(id(7896).IconButton, obj3), , ];
const obj4 = { size: "sm", variant: "tertiary", accessibilityRole: "link", icon: callback(id(8352).FacebookNeutralIcon, { size: "sm", color: "interactive-icon-default" }), accessibilityLabel: null, onPress: null };
2026-07-29 08:29:29 +00:00
const intl2 = id(1236).intl;
obj4[4] = intl2.string(id(1236).t["h0or/l"]);
obj4[5] = function onPress() {
2026-08-25 06:04:03 +00:00
callback(4094).openURL(constants2.FACEBOOK_URL);
2026-07-20 16:05:17 +00:00
};
2026-08-25 06:04:03 +00:00
items3[1] = callback(id(7896).IconButton, obj4);
const obj5 = { size: "sm", variant: "tertiary", accessibilityRole: "link", icon: callback(id(8354).InstagramNeutralIcon, { size: "sm", color: "interactive-icon-default" }), accessibilityLabel: null, onPress: null };
2026-07-29 08:29:29 +00:00
const intl3 = id(1236).intl;
obj5[4] = intl3.string(id(1236).t["5uVPyf"]);
obj5[5] = function onPress() {
2026-08-25 06:04:03 +00:00
callback(4094).openURL(constants2.INSTAGRAM_URL);
2026-07-20 16:05:17 +00:00
};
2026-08-25 06:04:03 +00:00
items3[2] = callback(id(7896).IconButton, obj5);
2026-07-29 08:29:29 +00:00
obj2[2] = items3;
2026-08-25 06:04:03 +00:00
items2[1] = closure_11(id(5434).SafeAreaPaddingView, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items2;
return closure_11(closure_4, obj);
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("components_native/ChangeLogStandardTemplate.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult1;
export const ListItem = memoResult;
2026-07-29 08:29:29 +00:00
export const changelogRules = function changelogRules(changelogId, arg1) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
2026-08-24 06:08:38 +00:00
obj = defaultRulesDefault;
2026-07-29 08:29:29 +00:00
if (flag) {
obj = { components: null };
obj = { Link: null, ListItem: null, LHeading: null, Heading: null };
2026-08-24 06:08:38 +00:00
closure_0 = changelogId;
2026-07-29 08:29:29 +00:00
obj[0] = (arg0) => {
2026-08-24 06:08:38 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(arg0);
obj.changelogId = id;
2026-08-24 06:08:38 +00:00
return closure_1_10(closure_1_16, obj);
2026-07-29 08:29:29 +00:00
};
obj[1] = closure_15;
obj[2] = LHeading;
obj[3] = LHeading;
obj[0] = obj;
let messageRules = obj.getMessageRules(obj);
} else {
2026-08-24 06:08:38 +00:00
obj1 = { components: null };
2026-07-29 08:29:29 +00:00
const obj2 = { Link: null, ListItem: null, LHeading: null, Heading: null };
closure_0 = changelogId;
obj2[0] = (arg0) => {
2026-08-24 06:08:38 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(arg0);
obj.changelogId = id;
2026-08-24 06:08:38 +00:00
return closure_1_10(closure_1_16, obj);
2026-07-29 08:29:29 +00:00
};
obj2[1] = closure_15;
obj2[2] = LHeading;
obj2[3] = LHeading;
obj1[0] = obj2;
messageRules = obj.getDefaultRules(obj1);
}
return messageRules;
};
export const getRenderChangelog = function getRenderChangelog(id) {
2026-08-24 06:08:38 +00:00
obj = get_defaultRulesDefault;
2026-07-29 08:29:29 +00:00
id = id.id;
{
obj = { components: null };
obj = { Link: null, ListItem: null, LHeading: null, Heading: null };
obj[0] = (arg0) => {
2026-08-24 06:08:38 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(arg0);
obj.changelogId = id;
2026-08-24 06:08:38 +00:00
return closure_1_10(closure_1_16, obj);
2026-07-29 08:29:29 +00:00
};
obj[1] = closure_15;
obj[2] = LHeading;
obj[3] = LHeading;
obj[0] = obj;
const defaultRules = obj2.getDefaultRules(obj);
}
return obj.reactParserFor(defaultRules);
};