Files
discord-decomp/sources/modules/virtual_currency/native/OrbLottieAnimation.tsx
T
2026-07-28 01:06:53 +03:00

54 lines
3.5 KiB
TypeScript

/* Metro module 10126; source: modules/virtual_currency/native/OrbLottieAnimation.tsx; dependencies: [31, 33, 4048, 4002, 10127, 10130, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as SharedModule from '../../../design/shared.tsx'; /* Metro dependency 4002 */
import * as UseThemeModule from '../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
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});
let value = ReactModule;
const forwardRef = value.forwardRef;
const env0_3 = value.useRef;
const env0_4 = value.useEffect;
value = forwardRef(_fun79029);
value.displayName = 'OrbsLottieAnimation';
(FileImportTrackerModule).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 = (SharedModule).isThemeLight((UseThemeModule).useTheme());
const value3 = useRef(null);
useEffect(_fun79030, [animationType]);
ReactModule.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();
}
}
}
}
global.__d(_fun79028, 10126, [31, 33, 4048, 4002, 10127, 10130,
2]) /* metro module 10126, dependencies: [31, 33, 4048, 4002, 10127, 10130, 2] */;