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

57 lines
1.8 KiB
TypeScript
Raw Normal View History

// Module ID: 11190
// Function ID: 11191
// Name: OrbLottieAnimation
// Dependencies: [19, 21, 4542, 4458, 11191, 11193, 2]
2026-07-20 16:05:17 +00:00
// Module 11190 (OrbLottieAnimation)
import shared from "shared" /* 4458 */;
import useTheme from "useTheme" /* 4542 */;
import "module_19";
2026-07-23 10:11:24 +00:00
require = fn;
const noop = fn(19);
({ useRef: c3, useEffect: closure_4, forwardRef } = noop);
const jsx = fn(21).jsx;
2026-07-29 08:29:29 +00:00
const forwardRefResult = forwardRef((animationType, ref) => {
2026-07-20 16:05:17 +00:00
animationType = animationType.animationType;
const theme = useTheme.useTheme();
const tmp5 = React3(null);
2026-07-20 16:05:17 +00:00
const items = [animationType];
React4(() => {
2026-07-20 16:05:17 +00:00
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);
const imperativeHandle = noop.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) {
let SpendEarnOrbsLottie = tmp(11191).SpendEarnOrbsLightThemeLottie;
2026-07-20 16:05:17 +00:00
} else {
SpendEarnOrbsLottie = tmp(11193).SpendEarnOrbsLottie;
2026-07-20 16:05:17 +00:00
}
const size = { 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;
}
size.animation = str;
2026-07-29 08:29:29 +00:00
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";
let size = fn(2);
const result = size.fileFinishedImporting("modules/virtual_currency/native/OrbLottieAnimation.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;
export const OrbLottieAnimation = forwardRefResult;