/* Metro module 5426; source: unknown; dependencies: [27] */ import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */ function _fun47752(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5604:6, offset: 0x011cba78, size: 149 bytes, params: 8, frame: 16 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Animated = ReactNativeModule.Animated; const env0_1 = Animated.add; exports.forUIKit = forUIKit; exports.forFade = forFade; exports.forSlideLeft = forSlideLeft; exports.forSlideRight = forSlideRight; exports.forSlideUp = forSlideUp; exports.forNoAnimation = function() { return {}; }; function forUIKit({current, next, layouts}) { // fn#47753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5604:154, offset: 0x011cbb0d, size: 827 bytes, params: 2, frame: 25 const leftLabel = layouts.leftLabel; let value = 100; const r13 = leftLabel ? (layouts.screen.width - layouts.leftLabel.width) / 2 - 27 : value; const r10 = layouts.title ? (layouts.screen.width - layouts.title.width) / 2 - 27 : value; let width = layouts.screen.width; value = width / 4; const addBinding = add; const progress = current.progress; let interpolate = progress.interpolate; const value7 = addBinding(Reflect.apply(interpolate, progress, [{inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}]), next ? next.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}) : 0); object = {}; const object2 = {}; object2.opacity = value7.interpolate({inputRange: [0.3, 1, 1.5], outputRange: [0, 1, 0]}); object.leftButtonStyle = object2; interpolate = value7.interpolate; let getConstants = I18nManager.getConstants; let isRTL = Reflect.apply(getConstants, I18nManager, []).isRTL; const value8 = -value; const items2 = []; if (isRTL) { items2[0] = value8; items2[1] = 0; items2[2] = r13; } else { items2[0] = r13; items2[1] = 0; items2[2] = value8; } object.leftLabelStyle = {transform: [{translateX: Reflect.apply(interpolate, value7, [{inputRange: [0, 1, 2], outputRange: items2}])}]}; const object7 = {}; object7.opacity = value7.interpolate({inputRange: [0.3, 1, 1.5], outputRange: [0, 1, 0]}); object.rightButtonStyle = object7; const object8 = {}; object8.opacity = value7.interpolate({inputRange: [0, 0.4, 1, 1.5], outputRange: [0, 0.1, 1, 0]}); interpolate = value7.interpolate; getConstants = I18nManager.getConstants; isRTL = Reflect.apply(getConstants, I18nManager, []).isRTL; const value9 = -r10; const items3 = []; if (isRTL) { items3[0] = value9; items3[1] = 0; items3[2] = value; } else { items3[0] = value; items3[1] = 0; items3[2] = value9; } object8.transform = [{translateX: Reflect.apply(interpolate, value7, [{inputRange: [0.5, 1, 2], outputRange: items3}])}]; object.titleStyle = object8; interpolate = value7.interpolate; getConstants = I18nManager.getConstants; isRTL = Reflect.apply(getConstants, I18nManager, []).isRTL; width = layouts.screen.width; const items5 = []; if (isRTL) { items5[0] = -width; items5[1] = 0; width = layouts.screen.width; items5[2] = width; } else { items5[0] = width; items5[1] = 0; width = layouts.screen.width; items5[2] = -width; } object.backgroundStyle = {transform: [{translateX: Reflect.apply(interpolate, value7, [{inputRange: [0, 1, 2], outputRange: items5}])}]}; return object; } function forFade({current, next}) { // fn#47754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5604:1215, offset: 0x011cbe48, size: 277 bytes, params: 2, frame: 17 const addBinding = add; let value = current.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}); value = addBinding(value, next ? next.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}) : 0); const value4 = value.interpolate({inputRange: [0, 1, 2], outputRange: [0, 1, 0]}); object = {}; object.leftButtonStyle = {opacity: value4}; object.rightButtonStyle = {opacity: value4}; object.titleStyle = {opacity: value4}; const object4 = {}; object4.opacity = value.interpolate({inputRange: [0, 1, 1.9, 2], outputRange: [0, 1, 1, 0]}); object.backgroundStyle = object4; return object; } function forSlideLeft({current, next, layouts}) { // fn#47755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5604:1681, offset: 0x011cbf5d, size: 333 bytes, params: 2, frame: 21 const screen = layouts.screen; const addBinding = add; const progress = current.progress; let interpolate = progress.interpolate; const value5 = addBinding(Reflect.apply(interpolate, progress, [{inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}]), next ? next.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}) : 0); interpolate = value5.interpolate; const getConstants = I18nManager.getConstants; const isRTL = Reflect.apply(getConstants, I18nManager, []).isRTL; let width = screen.width; const items3 = []; if (isRTL) { items3[0] = -width; items3[1] = 0; width = screen.width; items3[2] = width; } else { items3[0] = width; items3[1] = 0; width = screen.width; items3[2] = -width; } const items2 = [{translateX: Reflect.apply(interpolate, value5, [{inputRange: [0, 1, 2], outputRange: items3}])}]; return {leftButtonStyle: {transform: items2}, rightButtonStyle: {transform: items2}, titleStyle: {transform: items2}, backgroundStyle: {transform: items2}}; } function forSlideRight({current, next, layouts}) { // fn#47756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5604:2188, offset: 0x011cc0aa, size: 333 bytes, params: 2, frame: 21 const screen = layouts.screen; const addBinding = add; const progress = current.progress; let interpolate = progress.interpolate; const value5 = addBinding(Reflect.apply(interpolate, progress, [{inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}]), next ? next.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}) : 0); interpolate = value5.interpolate; const getConstants = I18nManager.getConstants; const isRTL = Reflect.apply(getConstants, I18nManager, []).isRTL; let width = screen.width; const items3 = []; if (isRTL) { items3[0] = width; items3[1] = 0; width = screen.width; items3[2] = -width; } else { items3[0] = -width; items3[1] = 0; width = screen.width; items3[2] = width; } const items2 = [{translateX: Reflect.apply(interpolate, value5, [{inputRange: [0, 1, 2], outputRange: items3}])}]; return {leftButtonStyle: {transform: items2}, rightButtonStyle: {transform: items2}, titleStyle: {transform: items2}, backgroundStyle: {transform: items2}}; } function forSlideUp({current, next, layouts}) { // fn#47757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5604:2693, offset: 0x011cc1f7, size: 284 bytes, params: 2, frame: 20 const header = layouts.header; const addBinding = add; const progress = current.progress; let value = progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}); value = addBinding(value, next ? next.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}) : 0); const items2 = [{translateY: value.interpolate({inputRange: [0, 1, 2], outputRange: [-header.height, 0, -header.height]})}]; return {leftButtonStyle: {transform: items2}, rightButtonStyle: {transform: items2}, titleStyle: {transform: items2}, backgroundStyle: {transform: items2}}; } } global.__d(_fun47752, 5426, [27]) /* metro module 5426, dependencies: [27] */;