decord/beta/source/modules/markup/Timestamp.native.tsx

86 lines
2.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 11769
// Function ID: 11770
// Name: Timestamp
2026-10-12 16:32:48 +00:00
// Dependencies: [19, 21, 5092, 587, 558, 576, 11770, 4809, 1200, 2]
2026-10-12 16:32:48 +00:00
// Module 11769 (Timestamp)
2026-10-01 14:13:23 +00:00
import Fragment from "Fragment" /* 21 */;
2026-10-07 22:43:51 +00:00
import nativeDefault from "native" /* 587 */;
2026-10-12 16:32:48 +00:00
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4809 */;
import useFormattedTimestampDefault from "useFormattedTimestamp" /* 11770 */;
2026-10-01 14:13:23 +00:00
import react from "react" /* 19 */;
2026-10-12 16:32:48 +00:00
import createStyles from "createStyles" /* 5092 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let obj2;
const jsx = Fragment.jsx;
let obj = { timestamp: obj2 };
obj2 = { color: nativeDefault.colors.TEXT_DEFAULT, backgroundColor: nativeDefault.colors.BORDER_SUBTLE };
let closure_4 = createStyles.createStyles(obj);
2026-10-12 16:32:48 +00:00
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function Timestamp(node) {
2026-10-02 13:37:24 +00:00
let tmp6;
let obj = node(576);
const cResult = obj.c(6);
const tmp = node;
node = node.node;
const style = node.style;
const tmp4 = closure_4();
const tmp5 = useFormattedTimestampDefault(node);
let timestamp = tmp4.timestamp;
if (timestamp == null) {
timestamp = style;
}
if (cResult[0] !== node.full) {
const fn = function o() {
const obj = ToastActionCreatorsDefault;
2026-10-12 16:32:48 +00:00
const obj2 = { text: node.full };
obj.open("TIMESTAMP", obj2);
2026-10-02 13:37:24 +00:00
};
cResult[0] = node.full;
cResult[1] = fn;
tmp6 = fn;
} else {
tmp6 = cResult[1];
}
if (cResult[2] === tmp5) {
if (cResult[3] === timestamp) {
let tmp7;
if (cResult[4] === tmp6) {
tmp7 = cResult[5];
}
return tmp7;
}
}
2026-10-12 16:32:48 +00:00
const tmp8 = jsx(tmp(1200).LegacyText, { style: timestamp, onPress: tmp6, children: tmp5 });
2026-10-02 13:37:24 +00:00
cResult[2] = tmp5;
cResult[3] = timestamp;
cResult[4] = tmp6;
cResult[5] = tmp8;
tmp7 = tmp8;
2026-10-12 16:32:48 +00:00
}) : (function Timestamp(node) {
node = node.node;
2026-10-01 14:13:23 +00:00
const style = node.style;
let timestamp = closure_4().timestamp;
const tmp = closure_4();
const tmp2 = useFormattedTimestampDefault(node);
2026-10-12 16:32:48 +00:00
const LegacyText = node(1200).LegacyText;
const tmp3 = jsx;
2026-10-01 14:13:23 +00:00
if (timestamp == null) {
timestamp = style;
}
let obj = {
style: timestamp,
onPress() {
2026-10-01 14:13:23 +00:00
const obj = ToastActionCreatorsDefault;
2026-10-12 16:32:48 +00:00
const obj2 = { text: node.full };
obj.open("TIMESTAMP", obj2);
},
2026-10-01 14:13:23 +00:00
children: tmp2
};
return tmp3(LegacyText, obj);
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/markup/Timestamp.native.tsx");
export default tmp3;