/* Metro module 10394; source: modules/premium/native/gifting/PremiumFeaturesPromotionalLogo.tsx; dependencies: [57, 31, 4502, 33, 566, 7897, 477, 10395, 5475, 2] */ function _fun80492(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10580:6, offset: 0x01e7decf, size: 174 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; const env0_4 = importAll(31) /* metro dependency 31 */; const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */; const env0_6 = (require(33) /* metro dependency 33 */).jsx; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/gifting/PremiumFeaturesPromotionalLogo.tsx'); exports.default = PremiumFeaturesPromotionalLogo; } function PremiumFeaturesPromotionalLogo({rotatingAvatarImageUrl, promoRotatingStyle, shouldAnimate}) { // fn#80493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10580:249, offset: 0x01e7df7d, size: 412 bytes, params: 2, frame: 26 var r0; shouldAnimate = shouldAnimate === undefined || shouldAnimate; var env0_4 = undefined; var value; const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() { return AccessibilityStore.useReducedMotion; }); const binding = env0_4; const value3 = binding.useRef(null); const value4 = (require(7897) /* metro dependency 7897: APNGPlayerAndroid */).useAPNGPlayerControls(value3); var [property, env0_4] = undefined(binding.useState(false), 2); binding.useEffect(_fun80495, [shouldAnimate, value4, useReducedMotion]); (importDefault(10395) /* metro dependency 10395: useTimeout */)(_fun80496, property ? 100 : null); const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */; if (platformUtilsModule.isAndroid()) { if (useReducedMotion) { value = importDefault(5475) /* metro dependency 5475: FastImage */; value = ((Component) => )(value); r0 = value; } else { const APNGPlayer = (require(7897) /* metro dependency 7897: APNGPlayerAndroid */).APNGPlayer; r0 = ; } } else { value = importDefault(5475) /* metro dependency 5475: FastImage */; value = ((Component) => )(value); r0 = value; } return r0; } function _fun80495() { // fn#80495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10580:532, offset: 0x01e7e119, size: 118 bytes, params: 1, frame: 13 let value = environment.__proto__; value = require(477) /* metro dependency 477: PlatformUtils */; value = value.isAndroid(); if (value && !useReducedMotion) { if (shouldAnimate) { env0_2.seek(0); env0_4(true); } else { env0_4(false); env0_2.stop(); } } } function _fun80496() { // fn#80496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10580:621, offset: 0x01e7e18f, size: 28 bytes, params: 1, frame: 9 if (env0_3) { env0_2.play(); } }