Files
discord-decomp/sources/modules/virtual_currency/native/OrbLottieAnimation.tsx
T
2026-07-27 16:20:00 +03:00

48 lines
2.9 KiB
TypeScript

/* Metro module 10126; source: modules/virtual_currency/native/OrbLottieAnimation.tsx; dependencies: [31, 33, 4048, 4002, 10127, 10130, 2] */
function _fun79028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10312:6, offset: 0x01e41d6c, size: 191 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
let value = require(31) /* metro dependency 31 */;
const forwardRef = value.forwardRef;
const env0_3 = value.useRef;
const env0_4 = value.useEffect;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
value = forwardRef(_fun79029);
value.displayName = 'OrbsLottieAnimation';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/virtual_currency/native/OrbLottieAnimation.tsx');
exports.default = value;
exports.OrbLottieAnimation = value;
}
function _fun79029({animationType}, a1) { // fn#79029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10312:175, offset: 0x01e41e2b, size: 242 bytes, params: 3, frame: 19
const isThemeLight2 = (require(4002) /* metro dependency 4002: shared */).isThemeLight((require(4048) /* metro dependency 4048: useTheme */).useTheme());
const value3 = useRef(null);
useEffect(_fun79030, [animationType]);
env0_2.useImperativeHandle(a1, function() {
return {play: _fun79032};
});
return ((Component) => <Component ref={value3} size="custom" width={60} height={60} opacity={0.8} animation={animationType ?? 'spend'} useLottieDefaultColors />)(isThemeLight2 ? (require(10127) /* metro dependency 10127: SpendEarnOrbsLightThemeLottie */).SpendEarnOrbsLightThemeLottie : (require(10130) /* metro dependency 10130: SpendEarnOrbsLottie */).SpendEarnOrbsLottie);
}
function _fun79030() { // fn#79030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10312:263, offset: 0x01e41f1d, size: 40 bytes, params: 1, frame: 10
var current;
if (animationType !== null) {
current = env0_1.current;
if (current != null) {
current.play();
}
}
}
function _fun79031() { // fn#79031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10312:348, offset: 0x01e41f45, size: 18 bytes, params: 1, frame: 2
return {play: play_79032};
}
function play_79032() { // fn#79032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10312:359, offset: 0x01e41f57, size: 35 bytes, params: 1, frame: 10
const value = environment.__proto__;
return env1_1.current?.play();
}