184 lines
8.4 KiB
React
184 lines
8.4 KiB
React
/* Metro module 5426; source: unknown; dependencies: [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 value = require(27) /* metro dependency 27 */;
|
|
const Animated = value.Animated;
|
|
const env0_0 = value.I18nManager;
|
|
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
|
|
var object3;
|
|
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);
|
|
object3 = {};
|
|
const object4 = {};
|
|
object4.opacity = value7.interpolate({inputRange: [0.3, 1, 1.5], outputRange: [0, 1, 0]});
|
|
object3.leftButtonStyle = object4;
|
|
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;
|
|
}
|
|
object3.leftLabelStyle = {transform: [{translateX: Reflect.apply(interpolate, value7, [{inputRange: [0, 1, 2],
|
|
outputRange: items2}])}]};
|
|
const object5 = {};
|
|
object5.opacity = value7.interpolate({inputRange: [0.3, 1, 1.5], outputRange: [0, 1, 0]});
|
|
object3.rightButtonStyle = object5;
|
|
const object6 = {};
|
|
object6.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;
|
|
}
|
|
object6.transform = [{translateX: Reflect.apply(interpolate, value7, [{inputRange: [0.5, 1, 2],
|
|
outputRange: items3}])}];
|
|
object3.titleStyle = object6;
|
|
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;
|
|
}
|
|
object3.backgroundStyle = {transform: [{translateX: Reflect.apply(interpolate, value7, [{inputRange: [0, 1, 2],
|
|
outputRange: items5}])}]};
|
|
return object3;
|
|
}
|
|
|
|
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
|
|
var object2;
|
|
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]});
|
|
object2 = {};
|
|
object2.leftButtonStyle = {opacity: value4};
|
|
object2.rightButtonStyle = {opacity: value4};
|
|
object2.titleStyle = {opacity: value4};
|
|
const object3 = {};
|
|
object3.opacity = value.interpolate({inputRange: [0, 1, 1.9, 2], outputRange: [0, 1, 1, 0]});
|
|
object2.backgroundStyle = object3;
|
|
return object2;
|
|
}
|
|
|
|
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}};
|
|
}
|
|
|