/* Metro module 6762; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 6763, 6764] */ import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from './module-00017.js'; /* Metro dependency 17 */ import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */ import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */ import React from './module-00031-React.js'; /* Metro dependency 31 */ import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as ParsePossibleSourcesModule from './module-06764-parsePossibleSources.js'; /* Metro dependency 6764 */ function _fun53271(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:6, offset: 0x01343eac, size: 310 bytes, params: 8, frame: 19 const env0_0 = require; const env0_3 = ['style', 'source', 'autoPlay', 'duration', 'textFiltersAndroid', 'textFiltersIOS', 'resizeMode']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = React; const PureComponent = value.PureComponent; value = _fun53275(PureComponent); value.defaultProps = {'source': null, 'progress': 0, 'speed': 1, 'loop': true, 'autoPlay': false, 'enableMergePathsAndroidForKitKatAndAbove': false, 'enableSafeModeAndroid': false, 'cacheComposition': true, 'useNativeLooping': false, 'resizeMode': 'contain', source: undefined, colorFilters: [], textFiltersAndroid: [], textFiltersIOS: []}; exports.LottieView = value; function _isNativeReflectConstruct_53272() { // fn#53272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:303, offset: 0x01343fe2, size: 94 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_53272_isNativeReflectConstruct = function() { return !!result; })(); } function _fun53275(a0) { // fn#53275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:771, offset: 0x01344040, size: 183 bytes, params: 2, frame: 16 const LottieView2 = LottieView; Inherits(LottieView2, a0); return CreateClass(LottieView2, [{key: 'play', value: function(a0, a1) { var value = a0; var value2 = a1; var Commands = require(dependencyMap[9]).Commands; var play = Commands.play; var lottieAnimationViewRef = this.lottieAnimationViewRef; var value4 = -1; Reflect.apply(play, Commands, [lottieAnimationViewRef, value ?? value4, value2 ?? value4]); }}, {key: 'reset', value: function() { var Commands = require(dependencyMap[9]).Commands; Commands.reset(this.lottieAnimationViewRef); }}, {key: 'pause', value: function() { var Commands = require(dependencyMap[9]).Commands; Commands.pause(this.lottieAnimationViewRef); }}, {key: 'resume', value: function() { var Commands = require(dependencyMap[9]).Commands; Commands.resume(this.lottieAnimationViewRef); }}, {key: 'captureRef', value: function(a0) { if (a0 !== null) { this.lottieAnimationViewRef = a0; if (this.props.autoPlay === true) { this.play(); } } }}, {key: 'render', value: value_53285}]); function LottieView(a0) { // fn#53276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:783, offset: 0x013440f7, size: 294 bytes, params: 2, frame: 21 var environment; let value = environment.__proto__; env1_5(this, LottieView); const items2 = [a0]; const value3 = env1_8(LottieView); value = env1_7(this, _isNativeReflectConstruct_53272() ? global.Reflect.construct(value3, items2, env1_8(this).constructor) : value3.apply(this, items2)); value.onAnimationFinish = onAnimationFinish; value.onAnimationFailure = onAnimationFailure; value.onAnimationLoaded = onAnimationLoaded; value.play = value.play.bind(value); value.reset = value.reset.bind(value); value.pause = value.pause.bind(value); value.resume = value.resume.bind(value); var onAnimationFinish = value.onAnimationFinish; value.onAnimationFinish = onAnimationFinish.bind(value); value.captureRef = value.captureRef.bind(value); a0.hover; return value; function onAnimationFinish(a0) { // fn#53277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:1013, owner: LottieView.onAnimationFinish, offset: 0x0134421d, size: 63 bytes, params: 2, frame: 11 let props = env0_0.props; if (props.onAnimationFinish != null) { props = env0_0.props; props.onAnimationFinish(a0.nativeEvent.isCancelled); } } function onAnimationFailure(a0) { // fn#53278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:1133, owner: LottieView.onAnimationFailure, offset: 0x0134425c, size: 62 bytes, params: 2, frame: 11 let props = env0_0.props; if (props.onAnimationFailure != null) { props = env0_0.props; props.onAnimationFailure(a0.nativeEvent.error); } } function onAnimationLoaded() { // fn#53279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:1248, owner: LottieView.onAnimationLoaded, offset: 0x0134429a, size: 47 bytes, params: 1, frame: 10 if (env0_0.props.onAnimationLoaded != null) { env0_0.props.onAnimationLoaded(); } } } function value_53285() { // fn#53285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:2084, offset: 0x013443f5, size: 394 bytes, params: 1, frame: 30 var environment; const props = this.props; const style = props.style; const source = props.source; const autoPlay = props.autoPlay; const duration = props.duration; const textFiltersAndroid = props.textFiltersAndroid; const textFiltersIOS = props.textFiltersIOS; const resizeMode = props.resizeMode; let value = environment.__proto__; const binding = env1_4; const value2 = undefined; const value3 = binding(props, env1_3); if (source == null) { global.console.warn('LottieView needs `source` parameter, provided value for source:', source); return null; } const possibleSources = (ParsePossibleSourcesModule).parsePossibleSources(source); const r15 = duration && possibleSources.sourceJson && source.fr ? global.Math.round(source.op / source.fr * 1000 / duration) : this.props.speed; const colorFilters = this.props.colorFilters; const r18 = colorFilters == null ? value2 : colorFilters.map(function(a0) { var Object = global.Object; var object = {}; object.color = processColor(a0.color); return Object.assign({}, a0, object); }); value = importDefault(6763) /* metro dependency 6763 */; let Object = global.Object; return ((Component) => )(value); } } } global.__d(_fun53271, 6762, [29, 6, 7, 15, 17, 18, 31, 27, 33, 6763, 6764]) /* metro module 6762, dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 6763, 6764] */;