decord/source/modules/virtual_currency/native/OrbLottieAnimation.tsx

58 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10441
// Function ID: 10442
2026-07-29 08:29:29 +00:00
// Name: forwardRef
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 21, 4314, 1363, 10442, 10445, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 10441 (forwardRef)
import closure_2 from "noop" /* 19 */;
import noop from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ useRef: c3, useEffect: c4, forwardRef } = noop);
const forwardRefResult = forwardRef((animationType, ref) => {
2026-07-20 16:05:17 +00:00
animationType = animationType.animationType;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
let obj = animationType(4314);
2026-07-20 16:05:17 +00:00
const theme = obj.useTheme();
2026-08-11 06:20:06 +00:00
const obj2 = animationType(1363);
2026-07-29 08:29:29 +00:00
const tmp5 = callback(null);
dependencyMap = tmp5;
2026-07-20 16:05:17 +00:00
const items = [animationType];
callback2(() => {
if (null !== animationType) {
2026-08-24 06:08:38 +00:00
const current = ref.current;
2026-07-29 08:29:29 +00:00
if (current != null) {
2026-07-20 16:05:17 +00:00
current.play();
}
}
}, items);
2026-07-29 08:29:29 +00:00
const imperativeHandle = React.useImperativeHandle(ref, () => ({
2026-07-20 16:05:17 +00:00
play() {
2026-07-29 08:29:29 +00:00
const current = ref.current;
2026-07-20 16:05:17 +00:00
let playResult;
2026-07-29 08:29:29 +00:00
if (current != null) {
2026-07-20 16:05:17 +00:00
playResult = current.play();
}
return playResult;
}
}));
if (isThemeLightResult) {
2026-08-24 06:08:38 +00:00
let SpendEarnOrbsLottie = tmp(10442).SpendEarnOrbsLightThemeLottie;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
SpendEarnOrbsLottie = tmp(10445).SpendEarnOrbsLottie;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { ref: tmp5, size: "custom", width: 60, height: 60, opacity: 0.8, animation: null, useLottieDefaultColors: true };
2026-07-20 16:05:17 +00:00
let str = "spend";
if (null != animationType) {
str = animationType;
}
2026-07-29 08:29:29 +00:00
obj[5] = str;
return <SpendEarnOrbsLottie ref={tmp5} size="custom" width={60} height={60} opacity={0.8} animation={null} useLottieDefaultColors />;
2026-07-20 16:05:17 +00:00
});
forwardRefResult.displayName = "OrbsLottieAnimation";
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/virtual_currency/native/OrbLottieAnimation.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;
export const OrbLottieAnimation = forwardRefResult;