/* Metro module 8242; source: modules/stickers/native/NativeLottieView.tsx; dependencies: [31, 27, 33, 477, 8243, 116, 2] */ import React from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import Module00116 from '../../../by-id/module-00116.js'; /* Metro dependency 116 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ 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 */ function _fun65895(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8427:6, offset: 0x01be487d, size: 322 bytes, params: 8, frame: 22 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const env0_0 = value.useEffect; const env0_1 = value.useRef; const requireNativeComponent = (ReactNativeModule).requireNativeComponent; if (Reflect.apply((require(477) /* metro dependency 477: PlatformUtils */).isAndroid, value, [])) { value = importDefault(8243) /* metro dependency 8243: LottieNodeNativeComponent */; } else { value = requireNativeComponent('NativeLottieNode'); } const env0_5 = (Module00116)({supportedCommands: ['setup']}); object = {LOOP: 0}; object[0] = 'LOOP'; object.STILL = 1; object[1] = 'STILL'; object.ONCE = 2; object[2] = 'ONCE'; (FileImportTrackerModule).fileFinishedImporting('modules/stickers/native/NativeLottieView.tsx'); exports.default = _default_65896; exports.NativeLottieRenderMode = object; function _default_65896({asset, url, width, height, opacity, renderMode = env0_6.LOOP, animating, accessibilityLabel}) { // fn#65896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8427:377, offset: 0x01be49bf, size: 241 bytes, params: 2, frame: 23 opacity = opacity === undefined ? 1 : opacity; animating = animating === undefined || animating; const value2 = undefined.useRef(null); const env0_3 = useRef({asset: asset, url: url, width: width, height: height, animating: animating, accessibilityLabel: accessibilityLabel}); useEffect(_fun65897); useEffect(_fun65898, [renderMode]); return ((Component) => )(env0_4); function _fun65897() { // fn#65897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8427:588, offset: 0x01be4ab0, size: 21 bytes, params: 1, frame: 2 env0_3.current = React; } function _fun65898() { // fn#65898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8427:611, offset: 0x01be4ac5, size: 202 bytes, params: 1, frame: 25 var value5; var binding; var {asset, url, width, height, animating, accessibilityLabel} = env0_3.current; var {asset, url, width, height, renderMode, animating, accessibilityLabel} = {asset: assetBinding, url: urlBinding, width: widthBinding, height: heightBinding, renderMode: env0_0, animating: animatingBinding, accessibilityLabel: accessibilityLabelBinding}; if (urlBinding !== '' && widthBinding !== 0 && heightBinding !== 0) { value5 = environment.__proto__; binding = env1_5; binding.setup(env0_1.current, assetBinding, urlBinding, widthBinding, heightBinding, renderMode, animatingBinding, accessibilityLabelBinding); } } } } global.__d(_fun65895, 8242, [31, 27, 33, 477, 8243, 116, 2]) /* metro module 8242, dependencies: [31, 27, 33, 477, 8243, 116, 2] */;