decord/source/387_createAnimatedComponent.js

76 lines
2.7 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 387
// Function ID: 388
// Name: createAnimatedComponent
// Dependencies: [32, 19, 21, 388, 334, 256]
// Exports: default, unstable_createAnimatedComponentWithAllowlist
// Module 387 (createAnimatedComponent)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import addListenersToPropsValueDefault from "addListenersToPropsValue" /* 388 */;
import closure_2 from "_slicedToArray" /* 32 */;
import { useMemo } from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
export default function createAnimatedComponent(displayName) {
2026-08-24 06:08:38 +00:00
importDefault = displayName;
dependencyMap = addListenersToPropsValueDefault(null);
2026-07-29 08:29:29 +00:00
class AnimatedComponent {
constructor(arg0) {
style = undefined;
style = undefined;
2026-08-24 06:08:38 +00:00
tmp = closure_1_2(style(Object.assign(displayName, Object.create(null))), 2);
2026-07-29 08:29:29 +00:00
first = tmp[0];
({ passthroughAnimatedPropExplicitValues, style } = first);
style = undefined;
2026-08-24 06:08:38 +00:00
tmp3 = closure_0(closure_1[4])(tmp[1], displayName.ref);
2026-07-29 08:29:29 +00:00
if (passthroughAnimatedPropExplicitValues != null) {
style = passthroughAnimatedPropExplicitValues.style;
}
items = [, ];
items[0] = style;
items[1] = style;
obj = {};
2026-08-24 06:08:38 +00:00
tmp5 = closure_1_3(() => { ... }, items);
2026-07-29 08:29:29 +00:00
merged = Object.assign(first);
merged1 = Object.assign(passthroughAnimatedPropExplicitValues);
obj.style = tmp5;
obj.ref = tmp3;
2026-08-24 06:08:38 +00:00
return closure_1_4(style, obj);
2026-07-29 08:29:29 +00:00
}
}
AnimatedComponent.displayName = "Animated(" + displayName.displayName || "Anonymous" + ")";
return AnimatedComponent;
};
export const unstable_createAnimatedComponentWithAllowlist = function unstable_createAnimatedComponentWithAllowlist(displayName) {
2026-08-24 06:08:38 +00:00
importDefault = displayName;
dependencyMap = addListenersToPropsValueDefault(arg1);
2026-07-29 08:29:29 +00:00
class AnimatedComponent {
constructor(arg0) {
style = undefined;
style = undefined;
2026-08-24 06:08:38 +00:00
tmp = closure_1_2(style(Object.assign(displayName, Object.create(null))), 2);
2026-07-29 08:29:29 +00:00
first = tmp[0];
({ passthroughAnimatedPropExplicitValues, style } = first);
style = undefined;
2026-08-24 06:08:38 +00:00
tmp3 = closure_0(closure_1[4])(tmp[1], displayName.ref);
2026-07-29 08:29:29 +00:00
if (passthroughAnimatedPropExplicitValues != null) {
style = passthroughAnimatedPropExplicitValues.style;
}
items = [, ];
items[0] = style;
items[1] = style;
obj = {};
2026-08-24 06:08:38 +00:00
tmp5 = closure_1_3(() => { ... }, items);
2026-07-29 08:29:29 +00:00
merged = Object.assign(first);
merged1 = Object.assign(passthroughAnimatedPropExplicitValues);
obj.style = tmp5;
obj.ref = tmp3;
2026-08-24 06:08:38 +00:00
return closure_1_4(style, obj);
2026-07-29 08:29:29 +00:00
}
}
AnimatedComponent.displayName = "Animated(" + displayName.displayName || "Anonymous" + ")";
return AnimatedComponent;
};