/* Metro module 10394; source: modules/premium/native/gifting/PremiumFeaturesPromotionalLogo.tsx; dependencies: [57, 31, 4502, 33, 566, 7897, 477, 10395, 5475, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
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 PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
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});
(FileImportTrackerModule).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);
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 (Module00057) {
env0_2.play();
}
}
}
}
global.__d(_fun80492, 10394, [57, 31, 4502, 33, 566, 7897, 477, 10395, 5475,
2]) /* metro module 10394, dependencies: [57, 31, 4502, 33, 566, 7897, 477, 10395, 5475, 2] */;