55 lines
1.9 KiB
TypeScript
55 lines
1.9 KiB
TypeScript
// Module ID: 9781
|
|
// Function ID: 76032
|
|
// Name: OrbLottieAnimation
|
|
// Dependencies: [270270464, 297467904, 270401536, 31260672, 131072, 527958016, 452984832]
|
|
|
|
// Module 9781 (OrbLottieAnimation)
|
|
let closure_2 = importAll(dependencyMap[0]);
|
|
const obj = arg1(dependencyMap[0]);
|
|
({ useRef: closure_3, useEffect: closure_4 } = obj);
|
|
const jsx = arg1(dependencyMap[1]).jsx;
|
|
const forwardRefResult = obj.forwardRef((animationType) => {
|
|
animationType = animationType.animationType;
|
|
const arg1 = animationType;
|
|
let obj = arg1(dependencyMap[2]);
|
|
const theme = obj.useTheme();
|
|
const obj2 = arg1(dependencyMap[3]);
|
|
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() {
|
|
const current = ref.current;
|
|
let playResult;
|
|
if (null != current) {
|
|
playResult = current.play();
|
|
}
|
|
return playResult;
|
|
}
|
|
}));
|
|
if (isThemeLightResult) {
|
|
let SpendEarnOrbsLottie = tmp6(tmp7[4]).SpendEarnOrbsLightThemeLottie;
|
|
} else {
|
|
SpendEarnOrbsLottie = tmp6(tmp7[5]).SpendEarnOrbsLottie;
|
|
}
|
|
obj = { -9223372036854775808: 2020671489, 9223372036854775807: 1808465921, 9223372036854775807: 759300097, 0: 1644167430, 0: 1358955057, 9223372036854775807: 553718385, -9223372036854775808: 1985135201, ref: tmp3 };
|
|
let str = "spend";
|
|
if (null != animationType) {
|
|
str = animationType;
|
|
}
|
|
obj.animation = str;
|
|
return <SpendEarnOrbsLottie {...obj} />;
|
|
});
|
|
forwardRefResult.displayName = "OrbsLottieAnimation";
|
|
const result = arg1(dependencyMap[6]).fileFinishedImporting("modules/virtual_currency/native/OrbLottieAnimation.tsx");
|
|
|
|
export default forwardRefResult;
|
|
export const OrbLottieAnimation = forwardRefResult;
|