decord/alpha/source/modules/vibegrations/native/VibegrationsFloatingActivity.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

107 lines
6.1 KiB
TypeScript

// Module ID: 16366
// Function ID: 16367
// Name: VibegrationsFloatingActivity
// Dependencies: [32, 19, 17, 21, 4829, 576, 4563, 4830, 16349, 5428, 1115, 3714, 9600, 4825, 5845, 2]
// Exports: default
// Module 16366 (VibegrationsFloatingActivity)
import nativeDefault from "native" /* 576 */;
import _modDef3714 from "module_3714" /* 3714 */;
import ReanimatedRexportDefault from "ReanimatedRexport" /* 4563 */;
import timing from "timing" /* 4830 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: metroRequire, jsxs: closure_7 } = jsxProd);
const createStyles = fn(4829);
let obj2 = { root: null, pill: null, pillMain: null, checklistButton: null, panel: null, label: null };
const rect = { position: "absolute", left: nativeDefault.space.PX_16, right: nativeDefault.space.PX_16, alignItems: "center" };
obj2.root = rect;
obj2.pill = { flexDirection: "row", alignItems: "center", maxWidth: "100%", paddingVertical: nativeDefault.space.PX_8, paddingHorizontal: nativeDefault.space.PX_12, borderRadius: nativeDefault.radii.round, backgroundColor: nativeDefault.colors.BACKGROUND_SECONDARY_ALT, borderWidth: 1, borderColor: nativeDefault.colors.BORDER_SUBTLE, shadowColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST, shadowOpacity: 0.3, shadowRadius: 8, shadowOffset: { width: 0, height: 2 }, elevation: 4 };
let obj3 = { flexDirection: "row", alignItems: "center", maxWidth: "100%", paddingVertical: nativeDefault.space.PX_8, paddingHorizontal: nativeDefault.space.PX_12, borderRadius: nativeDefault.radii.round, backgroundColor: nativeDefault.colors.BACKGROUND_SECONDARY_ALT, borderWidth: 1, borderColor: nativeDefault.colors.BORDER_SUBTLE, shadowColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST, shadowOpacity: 0.3, shadowRadius: 8, shadowOffset: { width: 0, height: 2 }, elevation: 4 };
obj2.pillMain = { flexDirection: "row", alignItems: "center", gap: nativeDefault.space.PX_8, flexShrink: 1 };
let obj4 = { flexDirection: "row", alignItems: "center", gap: nativeDefault.space.PX_8, flexShrink: 1 };
obj2.checklistButton = { paddingLeft: nativeDefault.space.PX_12 };
let obj5 = { paddingLeft: nativeDefault.space.PX_12 };
obj2.panel = { maxWidth: "100%", marginBottom: nativeDefault.space.PX_8, padding: nativeDefault.space.PX_12, borderRadius: nativeDefault.radii.md, backgroundColor: nativeDefault.colors.BACKGROUND_SECONDARY_ALT, borderWidth: 1, borderColor: nativeDefault.colors.BORDER_SUBTLE, shadowColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST, shadowOpacity: 0.3, shadowRadius: 8, shadowOffset: { width: 0, height: 2 }, elevation: 4 };
obj2.label = { flexShrink: 1 };
let closure_8 = createStyles.createStyles(obj2);
const __initData = { code: "function VibegrationsFloatingActivityTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
const size = fn(2);
let result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsFloatingActivity.tsx");
export default function VibegrationsFloatingActivity(agents) {
({ line, todos, todosLive } = agents);
({ onJumpToActivity, bottom } = agents);
if (todosLive === undefined) {
todosLive = true;
}
let sharedValue;
importDefault = undefined;
const tmp = closure_8();
sharedValue = sharedValue(4563).useSharedValue(0);
const items = [sharedValue];
const effect = noop.useEffect(() => {
const result = sharedValue.set(timing.withTiming(1, { duration: 150 }));
return () => sharedValue(dependencyMap[6]).cancelAnimation(closure_1_0);
}, items);
const obj = sharedValue(4563);
const fn = function x() {
return { opacity: sharedValue.get() };
};
fn.__closure = { opacity: sharedValue };
fn.__workletHash = 13383549561987;
fn.__initData = __initData;
const animatedStyle = sharedValue(4563).useAnimatedStyle(fn);
const obj2 = sharedValue(4563);
[tmp8, c1] = noop.useState(false);
const callback = noop.useCallback(() => _undefined((arg0) => !arg0), []);
const obj3 = { style: null, pointerEvents: "box-none", children: null };
const items1 = [tmp.root, { bottom }, animatedStyle];
obj3.style = items1;
let tmp12 = null;
if (tmp8) {
tmp12 = null;
if (null != todos) {
const obj4 = { style: tmp.panel, children: null };
const obj5 = { todos, agents: agents.agents, live: todosLive, announceProgress: false };
obj4.children = closure_6(tmp11(16349), obj5);
tmp12 = closure_6(View, obj4);
}
}
const items2 = [tmp12, ];
const obj6 = { style: tmp.pill, children: null };
const obj7 = { style: tmp.pillMain, accessibilityRole: "button", accessibilityLabel: null, hitSlop: 8, onPress: null, children: null };
const intl = tmp2(1115).intl;
obj7.accessibilityLabel = intl.formatToPlainString(_modDef3714.Sk4CzQ, { activity: line });
obj7.onPress = onJumpToActivity;
const tmp15 = View;
const tmp7 = _slicedToArray(noop.useState(false), 2);
const items3 = [closure_6(sharedValue(9600).MagicWandIcon, { size: "xs", color: nativeDefault.colors.TEXT_BRAND }), ];
const obj8 = { size: "xs", color: nativeDefault.colors.TEXT_BRAND };
items3[1] = closure_6(View, { style: tmp.label, children: closure_6(sharedValue(4825).Text, { variant: "text-sm/medium", color: "text-default", lineClamp: 1, children: line }) });
obj7.children = items3;
const items4 = [closure_7(sharedValue(5428).PressableOpacity, obj7), ];
if (null == todos) {
items4[1] = null;
obj6.children = items4;
items2[1] = tmp10(tmp15, obj6);
obj3.children = items2;
return tmp10(ReanimatedRexportDefault.View, obj3);
} else {
const obj10 = { style: tmp.checklistButton, accessibilityRole: "button", accessibilityState: null, accessibilityLabel: null, hitSlop: 8, onPress: null, children: null };
const obj11 = { expanded: tmp8 };
obj10.accessibilityState = obj11;
const intl2 = tmp2(1115).intl;
obj10.accessibilityLabel = intl2.string(tmp11(3714).OZIOl8);
obj10.onPress = callback;
let colors = tmp11(576).colors;
const obj12 = { size: "xs", color: tmp8 ? colors.TEXT_BRAND : colors.TEXT_MUTED };
colors = tmp16(tmp2(5845).ClipboardListIcon, obj12);
obj10.children = colors;
tmp16(tmp2(5428).PressableOpacity, obj10);
}
};