/* Metro module 8242; source: modules/stickers/native/NativeLottieView.tsx; dependencies: [31, 27, 33, 477, 8243, 116, 2] */ 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 var object2; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = require(31) /* metro dependency 31 */; const env0_0 = value.useEffect; const env0_1 = value.useRef; const env0_2 = importDefault(31) /* metro dependency 31 */; const requireNativeComponent = (require(27) /* metro dependency 27 */).requireNativeComponent; const env0_3 = (require(33) /* metro dependency 33 */).jsx; 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 = (importDefault(116) /* metro dependency 116 */)({supportedCommands: ['setup']}); object2 = {LOOP: 0}; object2[0] = 'LOOP'; object2.STILL = 1; object2[1] = 'STILL'; object2.ONCE = 2; object2[2] = 'ONCE'; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/NativeLottieView.tsx'); exports.default = _default_65896; exports.NativeLottieRenderMode = object2; } 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 _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); } }