2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 13052
|
|
|
|
|
// Function ID: 13053
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: UserProfileActivityTimebar
|
2026-09-10 05:38:07 +00:00
|
|
|
// Dependencies: [19, 17, 21, 4574, 576, 13053, 4570, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 13052 (UserProfileActivityTimebar)
|
|
|
|
|
import nativeDefault from "native" /* 576 */;
|
|
|
|
|
import Text_Text from "Text/Text" /* 4570 */;
|
|
|
|
|
import useActivityTimer from "useActivityTimer" /* 13053 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const useActivityTimerDefault = useActivityTimer;
|
|
|
|
|
|
|
|
|
|
require = fn;
|
|
|
|
|
const View = fn(17).View;
|
|
|
|
|
const jsxProd = fn(21);
|
|
|
|
|
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
|
|
|
|
|
const createStyles = fn(4574);
|
|
|
|
|
let obj2 = { bar: { backgroundColor: nativeDefault.colors.BACKGROUND_MOD_MUTED, borderRadius: nativeDefault.radii.xs, height: 4, marginBottom: 4 }, progress: null, textRow: null };
|
|
|
|
|
let obj3 = { backgroundColor: nativeDefault.colors.BACKGROUND_MOD_MUTED, borderRadius: nativeDefault.radii.xs, height: 4, marginBottom: 4 };
|
|
|
|
|
obj2.progress = { backgroundColor: nativeDefault.colors.ACTIVITY_TIMEBAR_PROGRESS_BACKGROUND, borderRadius: nativeDefault.radii.xs, height: "100%", minWidth: 4 };
|
|
|
|
|
obj2.textRow = { flexDirection: "row", justifyContent: "space-between" };
|
|
|
|
|
let closure_6 = createStyles.createStyles(obj2);
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.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-09-10 05:38:07 +00:00
|
|
|
const tmp = closure_6();
|
2026-08-31 15:47:37 +00:00
|
|
|
const tmp2 = useActivityTimerDefault({ start, end });
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { style, children: null };
|
|
|
|
|
const obj2 = { style: tmp.bar, children: null };
|
|
|
|
|
const obj3 = { style: null };
|
|
|
|
|
const items = [tmp.progress, { width: `${100 * tmp2.percentage}%` }];
|
|
|
|
|
obj3.style = items;
|
2026-08-31 15:47:37 +00:00
|
|
|
({ elapsed, duration } = tmp2);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.children = React4(View, obj3);
|
|
|
|
|
const items1 = [React4(View, obj2), ];
|
|
|
|
|
const obj5 = { style: tmp.textRow, children: null };
|
|
|
|
|
const obj6 = { variant: "text-xs/normal", tabularNumbers: true, color: "text-subtle", children: useActivityTimer.formatTime(elapsed) };
|
|
|
|
|
const items2 = [React4(Text_Text.Text, obj6), ];
|
|
|
|
|
const obj8 = { variant: "text-xs/normal", tabularNumbers: true, color: "text-subtle", children: null };
|
|
|
|
|
const obj4 = { width: `${100 * tmp2.percentage}%` };
|
|
|
|
|
obj8.children = useActivityTimer.formatTime(duration);
|
|
|
|
|
items2[1] = React4(Text_Text.Text, obj8);
|
|
|
|
|
obj5.children = items2;
|
|
|
|
|
items1[1] = hasOwnProperty(View, obj5);
|
|
|
|
|
obj.children = items1;
|
|
|
|
|
return hasOwnProperty(View, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|