decord/source/modules/user_profile/native/UserProfileActivityTimebar.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

51 lines
2.4 KiB
TypeScript

// Module ID: 13115
// Function ID: 13116
// Name: UserProfileActivityTimebar
// Dependencies: [19, 17, 21, 4606, 576, 13116, 4602, 2]
// Exports: default
// Module 13115 (UserProfileActivityTimebar)
import nativeDefault from "native" /* 576 */;
import Text_Text from "Text/Text" /* 4602 */;
import useActivityTimer from "useActivityTimer" /* 13116 */;
import noop from "module_19" /* 19 */;
const useActivityTimerDefault = useActivityTimer;
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
const createStyles = fn(4606);
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");
export default function UserProfileActivityTimebar(arg0) {
({ start, end, style } = arg0);
const tmp = closure_6();
const tmp2 = useActivityTimerDefault({ start, end });
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;
({ elapsed, duration } = tmp2);
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);
};