Files
2026-07-28 01:06:53 +03:00

193 lines
11 KiB
JavaScript

/* Metro module 5446; source: unknown; dependencies: [27, 5447] */
import Module05447 from './module-05447.js'; /* Metro dependency 5447 */
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun47964(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:6, offset: 0x011d5189, size: 199 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Animated = ReactNativeModule.Animated;
ReactNativeModule.Platform;
const env0_2 = Animated.add;
const env0_3 = Animated.multiply;
exports.forHorizontalIOS = forHorizontalIOS;
exports.forVerticalIOS = forVerticalIOS;
exports.forModalPresentationIOS = forModalPresentationIOS;
exports.forFadeFromBottomAndroid = forFadeFromBottomAndroid;
exports.forRevealFromBottomAndroid = forRevealFromBottomAndroid;
exports.forScaleFromCenterAndroid = forScaleFromCenterAndroid;
exports.forBottomSheetAndroid = forBottomSheetAndroid;
exports.forFadeFromCenter = forFadeFromCenter;
exports.forNoAnimation = function() {
return {};
};
function forHorizontalIOS({current, next, inverted, layouts}) { // fn#47965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:172, offset: 0x011d5250, size: 375 bytes, params: 2, frame: 24
var r6;
const screen = layouts.screen;
const object = {};
const object3 = {};
var value;
let multiplyBinding = multiply;
let progress = current.progress;
let interpolate = progress.interpolate;
object3.translateX = multiplyBinding(Reflect.apply(interpolate, progress, [{inputRange: [0, 1],
outputRange: [screen.width, 0], extrapolate: 'clamp'}]), inverted);
const items2 = [object3];
if (next) {
multiplyBinding = multiply;
progress = next.progress;
interpolate = progress.interpolate;
value = -0.3 * screen.width;
value = multiplyBinding(Reflect.apply(interpolate, progress, [{inputRange: [0, 1], outputRange: [0, value],
extrapolate: 'clamp'}]), inverted);
r6 = value;
} else {
r6 = 0;
}
items2[1] = {translateX: r6};
object.cardStyle = {transform: items2};
const object7 = {};
object7.opacity = current.progress.interpolate({inputRange: [0, 1], outputRange: [0, 0.07], extrapolate: 'clamp'});
object.overlayStyle = object7;
const object8 = {};
object8.shadowOpacity = current.progress.interpolate({inputRange: [0, 1], outputRange: [0, 0.3],
extrapolate: 'clamp'});
object.shadowStyle = object8;
return object;
}
function forVerticalIOS({current, inverted, layouts}) { // fn#47966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:742, offset: 0x011d53c7, size: 138 bytes, params: 2, frame: 19
const screen = layouts.screen;
const object2 = {};
const multiplyBinding = multiply;
const progress = current.progress;
object2.translateY = multiplyBinding(progress.interpolate({inputRange: [0, 1], outputRange: [screen.height, 0],
extrapolate: 'clamp'}), inverted);
return {cardStyle: {transform: [object2]}};
}
function forModalPresentationIOS({index, current, next, inverted, layouts, insets}) { // fn#47967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:982, offset: 0x011d5451, size: 592 bytes, params: 2, frame: 27
const screen = layouts.screen;
const value = screen.width > screen.height;
const r6 = value ? 0 : 10;
const top = insets.top;
const value4 = screen.height / screen.width;
const addBinding = add;
const progress = current.progress;
const value9 = addBinding(progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}),
next ? next.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}) : 0);
const value10 = index === 0;
const value11 = multiply(value9.interpolate({inputRange: [0, 1, 2], outputRange: [screen.height, value10 ? 0 : r6,
(value10 ? top : 0) - r6 * value4]}), inverted);
const value12 = value9.interpolate({inputRange: [0, 1, 1.0001, 2], outputRange: [0, 0.3, 1, 1]});
const r5 = value ? 1 : value9.interpolate({inputRange: [0, 1, 2], outputRange: [1, 1,
screen.width ? 1 - 2 * r6 / screen.width : 1]});
const r8 = value ? 0 : value10 ? value9.interpolate({inputRange: [0, 1, 1.0001, 2], outputRange: [0, 0, 0,
10]}) : 10;
return {cardStyle: {'overflow': 'hidden', 'borderTopLeftRadius': null, 'borderTopRightRadius': null,
'borderBottomLeftRadius': 0, 'borderBottomRightRadius': 0, borderTopLeftRadius: r8, borderTopRightRadius: r8,
marginTop: value10 ? 0 : top, marginBottom: value10 ? 0 : r6, transform: [{translateY: value11}, {scale: r5}]},
overlayStyle: {opacity: value12}};
}
function forFadeFromBottomAndroid({current, inverted, layouts, closing}) { // fn#47968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:1902, offset: 0x011d56a1, size: 249 bytes, params: 2, frame: 22
const screen = layouts.screen;
const multiplyBinding = multiply;
let progress = current.progress;
const value4 = multiplyBinding(progress.interpolate({inputRange: [0, 1], outputRange: [0.08 * screen.height, 0],
extrapolate: 'clamp'}), inverted);
const object2 = {};
progress = current.progress;
const progress2 = current.progress;
object2.opacity = Module05447(closing, progress, progress2.interpolate({inputRange: [0, 0.5, 0.9, 1], outputRange: [0,
0.25, 0.7, 1], extrapolate: 'clamp'}));
object2.transform = [{translateY: value4}];
return {cardStyle: object2};
}
function forRevealFromBottomAndroid({current, next, inverted, layouts}) { // fn#47969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:2299, offset: 0x011d579a, size: 439 bytes, params: 2, frame: 27
var r6;
const screen = layouts.screen;
const object = {};
const object3 = {};
var value;
let multiplyBinding = multiply;
let progress = current.progress;
let interpolate = progress.interpolate;
object3.translateY = multiplyBinding(Reflect.apply(interpolate, progress, [{inputRange: [0, 1],
outputRange: [screen.height, 0], extrapolate: 'clamp'}]), inverted);
object.containerStyle = {overflow: 'hidden', transform: [object3]};
const object6 = {};
progress = current.progress;
object6.translateY = multiplyBinding(progress.interpolate({inputRange: [0, 1],
outputRange: [0.9590000000000001 * screen.height * -1, 0], extrapolate: 'clamp'}), inverted);
const items4 = [object6];
if (next) {
multiplyBinding = multiply;
progress = next.progress;
interpolate = progress.interpolate;
value = 0.02 * screen.height;
value = multiplyBinding(Reflect.apply(interpolate, progress, [{inputRange: [0, 1], outputRange: [0, value * -1],
extrapolate: 'clamp'}]), inverted);
r6 = value;
} else {
r6 = 0;
}
items4[1] = {translateY: r6};
object.cardStyle = {transform: items4};
const object8 = {};
object8.opacity = current.progress.interpolate({inputRange: [0, 0.36, 1], outputRange: [0, 0.1, 0.1],
extrapolate: 'clamp'});
object.overlayStyle = object8;
return object;
}
function forScaleFromCenterAndroid({current, next, closing}) { // fn#47970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:2965, offset: 0x011d5951, size: 350 bytes, params: 2, frame: 22
const value5 = add(current.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}),
next ? next.progress.interpolate({inputRange: [0, 1], outputRange: [0, 1], extrapolate: 'clamp'}) : 0);
const object2 = {};
object2.opacity = value5.interpolate({inputRange: [0, 0.75, 0.875, 1, 1.0825, 1.2075, 2], outputRange: [0, 0, 1, 1,
1, 1, 0]});
const object4 = {};
object4.scale = (importDefault(5447) /* metro dependency 5447 */)(closing,
current.progress.interpolate({inputRange: [0, 1], outputRange: [0.925, 1], extrapolate: 'clamp'}),
value5.interpolate({inputRange: [0, 1, 2], outputRange: [0.85, 1, 1.075]}));
object2.transform = [object4];
return {cardStyle: object2};
}
function forBottomSheetAndroid({current, inverted, layouts, closing}) { // fn#47971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:3528, offset: 0x011d5aaf, size: 314 bytes, params: 2, frame: 23
const screen = layouts.screen;
const multiplyBinding = multiply;
let progress = current.progress;
const value4 = multiplyBinding(progress.interpolate({inputRange: [0, 1], outputRange: [0.8 * screen.height, 0],
extrapolate: 'clamp'}), inverted);
object = {};
const object2 = {};
progress = current.progress;
const progress2 = current.progress;
object2.opacity = Module05447(closing, progress, progress2.interpolate({inputRange: [0, 1], outputRange: [0, 1],
extrapolate: 'clamp'}));
object2.transform = [{translateY: value4}];
object.cardStyle = object2;
const object5 = {};
object5.opacity = current.progress.interpolate({inputRange: [0, 1], outputRange: [0, 0.3], extrapolate: 'clamp'});
object.overlayStyle = object5;
return object;
}
}
function forFadeFromCenter({current}) { // fn#47972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5624:4004, offset: 0x011d5be9, size: 135 bytes, params: 2, frame: 14
const progress = current.progress;
const object = {};
const object2 = {};
object2.opacity = progress.interpolate({inputRange: [0, 0.5, 0.9, 1], outputRange: [0, 0.25, 0.7, 1]});
object.cardStyle = object2;
const object4 = {};
object4.opacity = progress.interpolate({inputRange: [0, 1], outputRange: [0, 0.5], extrapolate: 'clamp'});
object.overlayStyle = object4;
return object;
}
global.__d(_fun47964, 5446, [27, 5447]) /* metro module 5446, dependencies: [27, 5447] */;