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

59 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9821
// Function ID: 76280
2026-07-20 16:05:17 +00:00
// Name: OrbLottieAnimation
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 33, 4066, 3976, 9822, 9825, 2]
2026-07-20 16:05:17 +00:00
2026-07-24 07:16:23 +00:00
// Module 9821 (OrbLottieAnimation)
2026-07-23 10:11:24 +00:00
import closure_2 from "result";
import result from "result";
import { jsx } from "jsxProd";
let closure_3;
let closure_4;
const require = arg1;
({ useRef: closure_3, useEffect: closure_4 } = result);
const forwardRefResult = result.forwardRef((animationType) => {
2026-07-20 16:05:17 +00:00
animationType = animationType.animationType;
2026-07-23 10:11:24 +00:00
let obj = animationType(4066);
2026-07-20 16:05:17 +00:00
const theme = obj.useTheme();
2026-07-23 10:11:24 +00:00
const obj2 = animationType(3976);
2026-07-20 16:05:17 +00:00
const tmp3 = callback(null);
const dependencyMap = tmp3;
const items = [animationType];
callback2(() => {
if (null !== animationType) {
const current = tmp3.current;
if (null != current) {
current.play();
}
}
}, items);
const imperativeHandle = React.useImperativeHandle(arg1, () => ({
play() {
2026-07-23 10:11:24 +00:00
const current = outer1_1.current;
2026-07-20 16:05:17 +00:00
let playResult;
if (null != current) {
playResult = current.play();
}
return playResult;
}
}));
if (isThemeLightResult) {
2026-07-24 07:16:23 +00:00
let SpendEarnOrbsLottie = tmp6(9822).SpendEarnOrbsLightThemeLottie;
2026-07-20 16:05:17 +00:00
} else {
2026-07-24 07:16:23 +00:00
SpendEarnOrbsLottie = tmp6(9825).SpendEarnOrbsLottie;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = { ref: tmp3, 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;
}
obj.animation = str;
2026-07-23 10:11:24 +00:00
return <SpendEarnOrbsLottie ref={tmp3} size="custom" width={60} height={60} opacity={0.8} animation={null} useLottieDefaultColors />;
2026-07-20 16:05:17 +00:00
});
forwardRefResult.displayName = "OrbsLottieAnimation";
2026-07-23 10:11:24 +00:00
result = require("useTheme").fileFinishedImporting("modules/virtual_currency/native/OrbLottieAnimation.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;
export const OrbLottieAnimation = forwardRefResult;