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

52 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 9421
// Function ID: 9422
2026-07-20 16:05:17 +00:00
// Name: UserProfileActivityTimebar
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 17, 21, 4478, 712, 9422, 4474, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 9421 (UserProfileActivityTimebar)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-09-01 10:26:29 +00:00
import Text from "Text" /* 4474 */;
import useActivityTimer from "useActivityTimer" /* 9422 */;
import useActivityTimerDefault from "useActivityTimer" /* 9422 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-08-31 15:47:37 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
2026-07-29 08:29:29 +00:00
createCacheKey = { bar: null, progress: null, textRow: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_MUTED, borderRadius: ThemesDefault.radii.xs, height: 4, marginBottom: 4 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { backgroundColor: ThemesDefault.colors.ACTIVITY_TIMEBAR_PROGRESS_BACKGROUND, borderRadius: ThemesDefault.radii.xs, height: "100%", minWidth: 4 };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = { flexDirection: "row", justifyContent: "space-between" };
2026-08-31 15:47:37 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
let obj1 = { backgroundColor: ThemesDefault.colors.ACTIVITY_TIMEBAR_PROGRESS_BACKGROUND, borderRadius: ThemesDefault.radii.xs, height: "100%", minWidth: 4 };
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileActivityTimebar.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileActivityTimebar(arg0) {
({ start, end, style } = arg0);
2026-08-31 15:47:37 +00:00
const tmp = callback3();
const tmp2 = useActivityTimerDefault({ start, end });
let obj = { style, children: null };
obj = { style: tmp.bar, children: callback(View, { style: items }) };
items = [tmp.progress, ];
obj = { width: `${100 * tmp2.percentage}%` };
items[1] = obj;
({ elapsed, duration } = tmp2);
2026-07-20 16:05:17 +00:00
const items1 = [callback(View, obj), ];
2026-08-31 15:47:37 +00:00
obj1 = { style: tmp.textRow, children: null };
const obj2 = { variant: "text-xs/normal", tabularNumbers: true, color: "text-subtle", children: useActivityTimer.formatTime(elapsed) };
const items2 = [callback(Text.Text, obj2), ];
const obj3 = { variant: "text-xs/normal", tabularNumbers: true, color: "text-subtle", children: null };
const obj6 = useActivityTimer;
obj3[3] = useActivityTimer.formatTime(duration);
items2[1] = callback(Text.Text, obj3);
obj1[1] = items2;
items1[1] = callback2(View, obj1);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-08-31 15:47:37 +00:00
return callback2(View, obj);
2026-07-20 16:05:17 +00:00
};