decord/source/modules/user_profile/native/UserProfileActivityTimebar.tsx

74 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 12119
// Function ID: 12120
2026-07-20 16:05:17 +00:00
// Name: UserProfileActivityTimebar
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 676, 21, 4661, 712, 1367, 12120, 4734, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 12119 (UserProfileActivityTimebar)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { Fonts } from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { bar: null, progress: null, textRow: null };
createCacheKey = { backgroundColor: require("Themes").colors.BACKGROUND_MOD_MUTED, borderRadius: require("Themes").radii.xs, height: 4, marginBottom: 4 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { backgroundColor: require("Themes").colors.ACTIVITY_TIMEBAR_PROGRESS_BACKGROUND, borderRadius: require("Themes").radii.xs, height: "100%", minWidth: 4 };
createCacheKey[2] = { flexDirection: "row", justifyContent: "space-between" };
createCacheKey = createCacheKey.createStyles(createCacheKey);
const obj1 = { backgroundColor: require("Themes").colors.ACTIVITY_TIMEBAR_PROGRESS_BACKGROUND, borderRadius: require("Themes").radii.xs, height: "100%", minWidth: 4 };
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("modules/user_profile/native/UserProfileActivityTimebar.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileActivityTimebar(arg0) {
let duration;
let elapsed;
let end;
let percentage;
let start;
let style;
({ start, end, style } = arg0);
2026-08-11 06:20:06 +00:00
const tmp2 = importDefault(1367)("UserProfileActivityTimebar");
2026-07-29 08:29:29 +00:00
const tmp3 = createCacheKey();
let tmp5;
2026-08-15 05:55:55 +00:00
({ elapsed, duration, percentage } = importDefault(12120)({ start, end }));
2026-07-29 08:29:29 +00:00
if (!tmp2) {
let obj = { fontFamily: null };
obj[0] = Fonts.CODE_NORMAL;
tmp5 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style, children: null };
obj = { style: tmp3.bar, children: callback(View, { style: items }) };
items = [tmp3.progress, { width: `${100 * percentage}%` }];
2026-07-20 16:05:17 +00:00
const items1 = [callback(View, obj), ];
2026-07-29 08:29:29 +00:00
const obj2 = { style: tmp3.textRow, children: null };
const obj3 = { variant: "text-xs/normal", style: tmp5, tabularNumbers: null, color: null, children: null };
obj3[2] = tmp2;
2026-07-20 16:05:17 +00:00
let str;
2026-07-29 08:29:29 +00:00
if (tmp2) {
2026-07-20 16:05:17 +00:00
str = "text-subtle";
}
2026-07-29 08:29:29 +00:00
obj3[3] = str;
2026-08-15 05:55:55 +00:00
let tmp10Result = tmp10(12120);
2026-07-29 08:29:29 +00:00
obj3[4] = tmp10Result.formatTime(elapsed);
2026-08-15 05:55:55 +00:00
const items2 = [callback(require(4734) /* Text */.Text, obj3), ];
2026-07-29 08:29:29 +00:00
const obj4 = { variant: "text-xs/normal", style: tmp5, tabularNumbers: null, color: null, children: null };
obj4[2] = tmp2;
2026-07-20 16:05:17 +00:00
let str2;
2026-07-29 08:29:29 +00:00
if (tmp2) {
2026-07-20 16:05:17 +00:00
str2 = "text-subtle";
}
2026-07-29 08:29:29 +00:00
obj4[3] = str2;
2026-08-15 05:55:55 +00:00
tmp10Result = tmp10(12120);
2026-07-29 08:29:29 +00:00
obj4[4] = tmp10Result.formatTime(duration);
2026-08-15 05:55:55 +00:00
items2[1] = callback(require(4734) /* Text */.Text, obj4);
2026-07-29 08:29:29 +00:00
obj2[1] = items2;
2026-07-20 16:05:17 +00:00
items1[1] = closure_6(View, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
return closure_6(View, obj);
};