Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
56 lines
1.8 KiB
TypeScript
56 lines
1.8 KiB
TypeScript
// Module ID: 11190
|
|
// Function ID: 11191
|
|
// Name: OrbLottieAnimation
|
|
// Dependencies: [19, 21, 4542, 4458, 11191, 11193, 2]
|
|
|
|
// Module 11190 (OrbLottieAnimation)
|
|
import shared from "shared" /* 4458 */;
|
|
import useTheme from "useTheme" /* 4542 */;
|
|
import "module_19";
|
|
|
|
require = fn;
|
|
const noop = fn(19);
|
|
({ useRef: c3, useEffect: closure_4, forwardRef } = noop);
|
|
const jsx = fn(21).jsx;
|
|
const forwardRefResult = forwardRef((animationType, ref) => {
|
|
animationType = animationType.animationType;
|
|
const theme = useTheme.useTheme();
|
|
const tmp5 = React3(null);
|
|
const items = [animationType];
|
|
React4(() => {
|
|
if (null !== animationType) {
|
|
const current = ref.current;
|
|
if (current != null) {
|
|
current.play();
|
|
}
|
|
}
|
|
}, items);
|
|
const imperativeHandle = noop.useImperativeHandle(ref, () => ({
|
|
play() {
|
|
const current = ref.current;
|
|
let playResult;
|
|
if (current != null) {
|
|
playResult = current.play();
|
|
}
|
|
return playResult;
|
|
}
|
|
}));
|
|
if (isThemeLightResult) {
|
|
let SpendEarnOrbsLottie = tmp(11191).SpendEarnOrbsLightThemeLottie;
|
|
} else {
|
|
SpendEarnOrbsLottie = tmp(11193).SpendEarnOrbsLottie;
|
|
}
|
|
const size = { ref: tmp5, size: "custom", width: 60, height: 60, opacity: 0.8, animation: null, useLottieDefaultColors: true };
|
|
let str = "spend";
|
|
if (null != animationType) {
|
|
str = animationType;
|
|
}
|
|
size.animation = str;
|
|
return <SpendEarnOrbsLottie ref={tmp5} size="custom" width={60} height={60} opacity={0.8} animation={null} useLottieDefaultColors />;
|
|
});
|
|
forwardRefResult.displayName = "OrbsLottieAnimation";
|
|
let size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/virtual_currency/native/OrbLottieAnimation.tsx");
|
|
|
|
export default forwardRefResult;
|
|
export const OrbLottieAnimation = forwardRefResult;
|