649 lines
30 KiB
React
649 lines
30 KiB
React
/* Metro module 5432; source: unknown; dependencies: [77, 6, 7, 15, 17, 18, 31, 27, 33, 5433, 5403, 5448, 5435, 5450, 5446, 5451, 5436, 5452] */
|
|
function _fun47781(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:6, offset: 0x011cce5d, size: 406 bytes, params: 8, frame: 20
|
|
let env0_0 = require;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_3 = importDefault(77) /* metro dependency 77 */;
|
|
let env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
let env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
let value2 = require(27) /* metro dependency 27 */;
|
|
const env0_10 = value2.Animated;
|
|
value2.Platform;
|
|
const StyleSheet = value2.StyleSheet;
|
|
let value3 = require(33) /* metro dependency 33 */;
|
|
const env0_12 = value3.jsx;
|
|
const env0_13 = value3.jsxs;
|
|
Object = global.Object;
|
|
const env0_14 = Object.freeze({options: {}});
|
|
const getInterpolationIndex = function(a0, a1) {
|
|
var r1;
|
|
var r5;
|
|
var r8;
|
|
var r0;
|
|
var property;
|
|
var cardStyleInterpolator2;
|
|
var value3;
|
|
var cardStyleInterpolator = a0[a1].descriptor.options.cardStyleInterpolator;
|
|
var value = a1 - 1;
|
|
var value2 = 0;
|
|
if (value >= value2) {
|
|
r1 = value2;
|
|
r5 = value;
|
|
while (true) {
|
|
property = a0[r5];
|
|
value = undefined;
|
|
if (property == null) {
|
|
r8 = value;
|
|
} else {
|
|
cardStyleInterpolator2 = property.descriptor.options.cardStyleInterpolator;
|
|
r8 = cardStyleInterpolator2;
|
|
}
|
|
if (r8 !== cardStyleInterpolator) {
|
|
r0 = r1;
|
|
break;
|
|
}
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
value3 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
|
|
if (value3 >= value2) {
|
|
r1 = value;
|
|
r5 = value3;
|
|
continue;
|
|
}
|
|
r0 = value;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
};
|
|
const getHeaderHeights = function(a0, a1, a2, a3, a4, a5) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = a2;
|
|
var env0_3 = a3;
|
|
var env0_4 = a4;
|
|
var env0_5 = a5;
|
|
return a0.reduce(_fun47788, {});
|
|
};
|
|
const Component = value.Component;
|
|
value = _fun47791(Component);
|
|
const env0_20 = StyleSheet.create({container: {flex: 1}, absolute: {'position': 'absolute', 'top': 0, 'left': 0,
|
|
'right': 0}, floating: {zIndex: 1}});
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_47782() { // fn#47782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:253, offset: 0x011ccff3, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_47782_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function getIsModal({descriptor}, a1, a2) { // fn#47786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:722, offset: 0x011cd0b3, size: 80 bytes, params: 4, frame: 12
|
|
if (a2) {
|
|
return true;
|
|
}
|
|
const cardStyleInterpolator = descriptor.options.cardStyleInterpolator;
|
|
let value = require(5433) /* metro dependency 5433 */;
|
|
value = value.getIsModalPresentation(cardStyleInterpolator);
|
|
return value && a1 !== 0;
|
|
}
|
|
|
|
function getHeaderHeights(a0, a1, a2, a3, a4, a5) { // fn#47787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:863, offset: 0x011cd103, size: 65 bytes, params: 7, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
const env0_4 = a4;
|
|
const env0_5 = a5;
|
|
return a0.reduce(_fun47788, {});
|
|
}
|
|
|
|
function getDistanceFromOptions(a0, a1) { // fn#47789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:1227, offset: 0x011cd232, size: 159 bytes, params: 3, frame: 15
|
|
const value = undefined;
|
|
const {presentation, gestureDirection} = (a1 == null ? value : a1.options) || ({});
|
|
return (importDefault(5435) /* metro dependency 5435 */)(a0,
|
|
value !== gestureDirection ? gestureDirection : presentation === 'modal' ? (require(5448) /* metro dependency 5448 */).ModalTransition.gestureDirection : (require(5448) /* metro dependency 5448 */).DefaultTransition.gestureDirection);
|
|
}
|
|
|
|
function getProgressFromGesture(a0, {width, height}, a2) { // fn#47790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:1477, offset: 0x011cd2d1, size: 185 bytes, params: 4, frame: 18
|
|
const getDistanceFromOptionsBinding = getDistanceFromOptions;
|
|
const object2 = {};
|
|
let Math = global.Math;
|
|
object2.width = Math.max(1, width);
|
|
Math = global.Math;
|
|
object2.height = Math.max(1, height);
|
|
const distanceFromOptionsBinding = getDistanceFromOptionsBinding(object2, a2);
|
|
return distanceFromOptionsBinding > 0 ? a0.interpolate({inputRange: [0, distanceFromOptionsBinding],
|
|
outputRange: [1, 0]}) : a0.interpolate({inputRange: [distanceFromOptionsBinding, 0], outputRange: [0, 1]});
|
|
}
|
|
|
|
function _fun47791(a0) { // fn#47791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:1701, offset: 0x011cd38a, size: 96 bytes, params: 2, frame: 17
|
|
const closure = CardStack;
|
|
env0_8(closure, a0);
|
|
return env0_5(closure, [{key: 'render', value: value_47800}], [{key: 'getDerivedStateFromProps',
|
|
value: value_47804}]);
|
|
}
|
|
|
|
function _fun47788(a0, a1, a2) { // fn#47788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:919, offset: 0x011cd144, size: 238 bytes, params: 4, frame: 20
|
|
const options = a1.descriptor.options;
|
|
const headerStatusBarHeight = options.headerStatusBarHeight;
|
|
const r7 = headerStatusBarHeight !== undefined ? headerStatusBarHeight : importDefault ? 0 : require.top;
|
|
const headerStyle = options.headerStyle;
|
|
let value = environment.__proto__;
|
|
const value3 = StyleSheet.flatten(headerStyle || ({}));
|
|
let r2 = 'height' in value3 && typeof value3.height === 'number' ? value3.height : env0_5[a1.route.key];
|
|
const isModal = getIsModal(a1, getInterpolationIndex(env0_0, a2), importAll);
|
|
const key = a1.route.key;
|
|
if (typeof r2 !== 'number') {
|
|
value = require(5403) /* metro dependency 5403 */;
|
|
value = value.getDefaultHeaderHeight(env0_4, isModal, r7);
|
|
r2 = value;
|
|
}
|
|
a0[key] = r2;
|
|
return a0;
|
|
}
|
|
|
|
function CardStack(a0) { // fn#47792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:1713, offset: 0x011cd3ea, size: 264 bytes, params: 2, frame: 21
|
|
env1_4(this, CardStack);
|
|
const items = [a0];
|
|
const value3 = env1_7(CardStack);
|
|
const value6 = env1_6(this, _isNativeReflectConstruct_47782() ? global.Reflect.construct(value3, items,
|
|
env1_7(this).constructor) : value3.apply(this, items));
|
|
value6.handleLayout = handleLayout_47793;
|
|
value6.handleHeaderLayout = function({route, height}) {
|
|
route.setState(_fun47796);
|
|
};
|
|
value6.getFocusedRoute = getFocusedRoute;
|
|
value6.getPreviousScene = getPreviousScene;
|
|
const SafeAreaProviderCompat = (require(5403) /* metro dependency 5403 */).SafeAreaProviderCompat;
|
|
value6.state = {routes: [], scenes: [], gestures: {}, layout: SafeAreaProviderCompat.initialMetrics.frame,
|
|
descriptors: value6.props.descriptors, headerHeights: {}};
|
|
return value6;
|
|
}
|
|
|
|
function value_47800() { // fn#47800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:2844, offset: 0x011cd6e2, size: 816 bytes, params: 1, frame: 34
|
|
var r17;
|
|
var r18;
|
|
var r21;
|
|
var r20;
|
|
var r19;
|
|
var r8;
|
|
var descriptor;
|
|
var options;
|
|
var detachPreviousScreen;
|
|
var presentation;
|
|
var value5;
|
|
var moduleValue;
|
|
var getIsModalPresentation;
|
|
var cardStyleInterpolator;
|
|
var value6;
|
|
var value7;
|
|
var defaultImport;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var absolute;
|
|
const props = this.props;
|
|
const env0_1 = props.insets;
|
|
const state = props.state;
|
|
const routes = props.routes;
|
|
const env0_2 = props.closingRouteKeys;
|
|
const env0_3 = props.onOpenRoute;
|
|
const env0_4 = props.onCloseRoute;
|
|
const renderHeader = props.renderHeader;
|
|
const env0_6 = props.renderScene;
|
|
const env0_7 = props.isParentHeaderShown;
|
|
const env0_8 = props.isParentModal;
|
|
const env0_9 = props.onTransitionStart;
|
|
const env0_10 = props.onTransitionEnd;
|
|
const env0_11 = props.onGestureStart;
|
|
const env0_12 = props.onGestureEnd;
|
|
const env0_13 = props.onGestureCancel;
|
|
const detachInactiveScreens = props.detachInactiveScreens;
|
|
const r15 = detachInactiveScreens === undefined || detachInactiveScreens;
|
|
const state2 = this.state;
|
|
const scenes = state2.scenes;
|
|
const layout = state2.layout;
|
|
const env0_17 = state2.gestures;
|
|
const headerHeights = state2.headerHeights;
|
|
let property = state.routes[state.index];
|
|
property = headerHeights[property.key];
|
|
value = this.state.scenes.slice(-2);
|
|
value = value.some(function(a0) {
|
|
var r1;
|
|
var r0;
|
|
var property = a0.descriptor.options;
|
|
r1 = property ?? ({});
|
|
property = r1.headerMode;
|
|
var headerTransparent = r1.headerTransparent;
|
|
var headerShown = r1.headerShown;
|
|
var value = !headerTransparent;
|
|
if (headerTransparent) {
|
|
r0 = value;
|
|
} else {
|
|
value = headerShown === undefined;
|
|
value = (value || headerShown) !== false;
|
|
r0 = value;
|
|
}
|
|
r0 = r0 && property !== 'screen';
|
|
return !r0;
|
|
});
|
|
const value2 = 1;
|
|
var env0_21;
|
|
let length = scenes.length;
|
|
const value3 = length - value2;
|
|
if (value3 >= 0) {
|
|
r17 = value3;
|
|
r18 = value2;
|
|
reducibleLoop2: while (true) {
|
|
descriptor = scenes[r17].descriptor;
|
|
options = descriptor.options;
|
|
detachPreviousScreen = options.detachPreviousScreen;
|
|
reducibleJoin8: while (true) {
|
|
if (detachPreviousScreen !== undefined) {
|
|
r19 = detachPreviousScreen;
|
|
break reducibleJoin8;
|
|
}
|
|
presentation = options.presentation;
|
|
value5 = presentation !== 'transparentModal';
|
|
reducibleJoin7: while (true) {
|
|
if (value5) {
|
|
moduleValue = require(5433) /* metro dependency 5433 */;
|
|
getIsModalPresentation = moduleValue.getIsModalPresentation;
|
|
cardStyleInterpolator = options.cardStyleInterpolator;
|
|
value6 = Reflect.apply(getIsModalPresentation, moduleValue, [cardStyleInterpolator]);
|
|
value7 = !value6;
|
|
reducibleJoin6: while (true) {
|
|
if (value6) {
|
|
defaultImport = importDefault(5450) /* metro dependency 5450 */;
|
|
value8 = r17 !== defaultImport(scenes, _fun47802);
|
|
r21 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r21 = value7;
|
|
break reducibleJoin6;
|
|
}
|
|
r20 = r21;
|
|
break reducibleJoin7;
|
|
}
|
|
r20 = value5;
|
|
break reducibleJoin7;
|
|
}
|
|
r19 = r20;
|
|
break reducibleJoin8;
|
|
}
|
|
if (r19 === false) {
|
|
value9 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
|
|
env0_21 = value9;
|
|
r19 = value9;
|
|
} else {
|
|
length = scenes.length;
|
|
reducibleJoin11: while (true) {
|
|
if (r17 <= length - 2) {
|
|
break reducibleLoop2;
|
|
}
|
|
r19 = r18;
|
|
break reducibleJoin11;
|
|
}
|
|
}
|
|
value10 = typeof r17 === 'bigint' ? r17 - 1n : +r17 - 1;
|
|
if (value10 >= 0) {
|
|
r17 = value10;
|
|
r18 = r19;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
const Fragment = env1_9.Fragment;
|
|
const getPreviousScene = this.getPreviousScene;
|
|
const getFocusedRoute = this.getFocusedRoute;
|
|
reducibleJoin14: while (true) {
|
|
if (value) {
|
|
absolute = env1_20.absolute;
|
|
r8 = [{height: property}, absolute];
|
|
break reducibleJoin14;
|
|
}
|
|
r8 = value;
|
|
break reducibleJoin14;
|
|
}
|
|
const fragment = <Fragment key="header">{renderHeader({mode: 'float', layout: layout, scenes: scenes,
|
|
getPreviousScene: getPreviousScene, getFocusedRoute: getFocusedRoute,
|
|
onContentHeightChange: this.handleHeaderLayout, style: [env1_20.floating, r8]})}</Fragment>;
|
|
const Background = (require(5403) /* metro dependency 5403 */).Background;
|
|
const value12 = null;
|
|
r8 = value ? value12 : fragment;
|
|
const MaybeScreenContainer = (require(5451) /* metro dependency 5451 */).MaybeScreenContainer;
|
|
return (
|
|
<Background>
|
|
{r8}
|
|
<MaybeScreenContainer
|
|
enabled={r15}
|
|
style={env1_20.container}
|
|
onLayout={this.handleLayout}
|
|
>
|
|
{routes.map(_fun47803)}
|
|
</MaybeScreenContainer>
|
|
{value ? fragment : value12}
|
|
</Background>
|
|
);
|
|
}
|
|
|
|
function value_47804(a0, a1) { // fn#47804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:5913, offset: 0x011cde85, size: 192 bytes, params: 3, frame: 22
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (a0.routes === a1.routes) {
|
|
if (a0.descriptors === a1.descriptors) {
|
|
return null;
|
|
}
|
|
}
|
|
let value = a0.routes.reduce(_fun47805, {});
|
|
const value2 = a0.routes.map(_fun47806);
|
|
const object2 = {};
|
|
object2.routes = a0.routes;
|
|
object2.scenes = value2;
|
|
object2.gestures = value;
|
|
object2.descriptors = a0.descriptors;
|
|
value = environment.__proto__;
|
|
object2.headerHeights = getHeaderHeights(value2, a0.insets, a0.isParentHeaderShown, a0.isParentModal, a1.layout,
|
|
a1.headerHeights);
|
|
return object2;
|
|
}
|
|
|
|
function CardStackHandleLayout({nativeEvent}) { // fn#47793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:1935, owner: CardStack.handleLayout, offset: 0x011cd4f2, size: 76 bytes, params: 2, frame: 12
|
|
const layout = nativeEvent.layout;
|
|
const height = layout.height;
|
|
const env0_0 = height;
|
|
const env0_2 = {width: layout.width, height: height};
|
|
env0_0.setState(_fun47794);
|
|
}
|
|
|
|
function handleHeaderLayout({route, height}) { // fn#47795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:2221, owner: CardStack.handleHeaderLayout, offset: 0x011cd5b2, size: 51 bytes, params: 2, frame: 11
|
|
route.setState(_fun47796);
|
|
}
|
|
|
|
function getFocusedRoute() { // fn#47797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:2401, owner: CardStack.getFocusedRoute, offset: 0x011cd649, size: 34 bytes, params: 1, frame: 2
|
|
const state = env0_0.props.state;
|
|
return state.routes[state.index];
|
|
}
|
|
|
|
function getPreviousScene({route}) { // fn#47798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:2477, owner: CardStack.getPreviousScene, offset: 0x011cd66b, size: 81 bytes, params: 2, frame: 13
|
|
const binding = env0_0;
|
|
const getPreviousRoute = binding.props.getPreviousRoute;
|
|
if (getPreviousRoute({route: route})) {
|
|
return binding.state.scenes.find(_fun47799);
|
|
}
|
|
}
|
|
|
|
function _fun47802({descriptor}) { // fn#47802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:3699, offset: 0x011cda62, size: 84 bytes, params: 2, frame: 12
|
|
const cardStyleInterpolator = descriptor.options.cardStyleInterpolator;
|
|
const value = environment.__proto__.__proto__;
|
|
return cardStyleInterpolator === (require(5446) /* metro dependency 5446 */).forModalPresentationIOS || cardStyleInterpolator?.name === 'forModalPresentationIOS';
|
|
}
|
|
|
|
function _fun47803(a0, a1, a2) { // fn#47803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:4293, offset: 0x011cdab6, size: 975 bytes, params: 4, frame: 40
|
|
var r28;
|
|
var r5;
|
|
var r11;
|
|
var property3;
|
|
var value8;
|
|
var value9;
|
|
var value12;
|
|
var value14;
|
|
const key = env0_19.key;
|
|
const key2 = a0.key;
|
|
const property = gestures[a0.key];
|
|
const property2 = scenes[a1];
|
|
let length = a2.length;
|
|
const value2 = 1;
|
|
const value3 = 0;
|
|
if (a1 < length - env0_21 - value2) {
|
|
r28 = value3;
|
|
} else {
|
|
scenesBinding = scenes;
|
|
length = a2.length;
|
|
property3 = scenesBinding[length - value2];
|
|
length = a2.length;
|
|
r28 = property3 ? property3.progress.current.interpolate({inputRange: [0, 0.99999, 1], outputRange: [1, 1,
|
|
a1 === length - value2 ? 2 : a1 >= a2.length - env0_21 ? value2 : value3], extrapolate: 'clamp'}) : value2;
|
|
}
|
|
const options = property2.descriptor.options;
|
|
const headerShown = options.headerShown;
|
|
const value6 = undefined;
|
|
const r1 = value6 === headerShown || headerShown;
|
|
const headerTransparent = options.headerTransparent;
|
|
const headerStyle = options.headerStyle;
|
|
const headerTintColor = options.headerTintColor;
|
|
const freezeOnBlur = options.freezeOnBlur;
|
|
const {top, right, bottom, left} = insets;
|
|
const r13 = r1 === false ? value3 : headerHeights[a0.key];
|
|
if (r1) {
|
|
if (typeof headerTintColor === 'string') {
|
|
value14 = environment.__proto__.__proto__;
|
|
r11 = (importDefault(5436) /* metro dependency 5436 */)(headerTintColor).isDark();
|
|
} else {
|
|
value8 = environment.__proto__.__proto__;
|
|
value9 = StyleSheet.flatten(headerStyle);
|
|
r5 = value9 && 'backgroundColor' in value9;
|
|
r5 = r5 && typeof value9.backgroundColor === 'string';
|
|
if (r5) {
|
|
value12 = (importDefault(5436) /* metro dependency 5436 */)(value9.backgroundColor);
|
|
r11 = !value12.isDark();
|
|
} else {
|
|
r11 = value6;
|
|
}
|
|
}
|
|
} else {
|
|
r11 = value6;
|
|
}
|
|
const interpolationIndex = getInterpolationIndex(scenes, a1);
|
|
const isModal = getIsModal(property2, interpolationIndex, isParentModal);
|
|
const property5 = scenes[a1 + value2];
|
|
const presentation = property5 == null ? value6 : property5.descriptor.options.presentation;
|
|
const property6 = scenes[a1 + value2];
|
|
const detachPreviousScreen = property6 == null ? value6 : property6.descriptor.options.detachPreviousScreen;
|
|
const MaybeScreen = (require(5451) /* metro dependency 5451 */).MaybeScreen;
|
|
const object2 = {style: StyleSheet.absoluteFill, enabled: env0_14, active: r28, freezeOnBlur: freezeOnBlur,
|
|
pointerEvents: 'box-none'};
|
|
const defaultImport2 = importDefault(5452) /* metro dependency 5452 */;
|
|
const closingRouteKeysBinding = closingRouteKeys;
|
|
const binding = env0_0;
|
|
const getPreviousScene = binding.getPreviousScene;
|
|
const getFocusedRoute = binding.getFocusedRoute;
|
|
return (
|
|
<MaybeScreen {...object2} key={a0.key}>
|
|
{((Component) => <Component index={a1} interpolationIndex={interpolationIndex} modal={isModal} active={a1 === a2.length - value2} focused={key === key2} closing={closingRouteKeysBinding.includes(a0.key)} layout={layout} gesture={property} scene={property2} safeAreaInsetTop={top} safeAreaInsetRight={right} safeAreaInsetBottom={bottom} safeAreaInsetLeft={left} onGestureStart={onGestureStart} onGestureCancel={onGestureCancel} onGestureEnd={onGestureEnd} headerHeight={r13} isParentHeaderShown={isParentHeaderShown} onHeaderHeightChange={binding.handleHeaderLayout} getPreviousScene={getPreviousScene} getFocusedRoute={getFocusedRoute} headerDarkContent={r11} hasAbsoluteFloatHeader={env0_20 && !headerTransparent} renderHeader={renderHeader} renderScene={renderScene} onOpenRoute={onOpenRoute} onCloseRoute={onCloseRoute} onTransitionStart={onTransitionStart} onTransitionEnd={onTransitionEnd} isNextScreenTransparent={presentation === 'transparentModal'} detachCurrentScreen={detachPreviousScreen !== false} />)(defaultImport2)}
|
|
</MaybeScreen>
|
|
);
|
|
}
|
|
|
|
function _fun47805(a0, a1) { // fn#47805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:6041, offset: 0x011cdf45, size: 184 bytes, params: 3, frame: 21
|
|
var r3;
|
|
var value3;
|
|
var Value;
|
|
var openingRouteKeys;
|
|
var value4;
|
|
var value5;
|
|
const descriptors = env0_0.descriptors;
|
|
let key = a1.key;
|
|
const property = descriptors[key];
|
|
let r1 = property?.options || ({});
|
|
const animationEnabled = r1.animationEnabled;
|
|
key = a1.key;
|
|
const property2 = require.gestures[a1.key];
|
|
if (property2) {
|
|
r1 = property2;
|
|
} else {
|
|
value3 = environment.__proto__.__proto__;
|
|
Value = Animated.Value;
|
|
openingRouteKeys = env0_0.openingRouteKeys;
|
|
value4 = openingRouteKeys.includes(a1.key);
|
|
value5 = 0;
|
|
r3 = value4 ? animationEnabled === false ? value5 : getDistanceFromOptions(require.layout, property) : value5;
|
|
r1 = new Value();
|
|
}
|
|
a0[key] = r1;
|
|
return a0;
|
|
}
|
|
|
|
function _fun47806(a0, a1, a2) { // fn#47806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:6265, offset: 0x011cdffd, size: 1134 bytes, params: 4, frame: 37
|
|
var environment;
|
|
var options;
|
|
var r12;
|
|
var value17;
|
|
var value18;
|
|
const property = a2[a1 - 1];
|
|
const property2 = a2[a1 + 1];
|
|
const property3 = require.scenes[a1];
|
|
const env0_0 = property3;
|
|
const property4 = env0_2[a0.key];
|
|
const value2 = undefined;
|
|
const r4 = property ? env0_2[property.key] : value2;
|
|
const r5 = property2 ? env0_2[property2.key] : value2;
|
|
let r9 = env0_0.descriptors[a0.key] || require.descriptors[a0.key];
|
|
r9 = !r9 ? property3 ? property3.descriptor : env2_14 : r9;
|
|
const r8 = env0_0.descriptors[property2 == null ? value2 : property2.key] || require.descriptors[property2 == null ? value2 : property2.key];
|
|
const r7 = env0_0.descriptors[property == null ? value2 : property.key] || require.descriptors[property == null ? value2 : property.key];
|
|
if (a1 === a2.length - 1) {
|
|
options = r9.options;
|
|
} else if (r8) {
|
|
options = r8.options;
|
|
options = options.presentation !== 'transparentModal' ? r8.options : r9.options;
|
|
} else {
|
|
options = r9.options;
|
|
}
|
|
let r10 = options.presentation === 'modal' ? (require(5448) /* metro dependency 5448 */).ModalTransition : options.presentation === 'transparentModal' ? (require(5448) /* metro dependency 5448 */).ModalFadeTransition : (require(5448) /* metro dependency 5448 */).DefaultTransition;
|
|
const animationEnabled = options.animationEnabled;
|
|
const r26 = value2 === animationEnabled || animationEnabled;
|
|
const gestureEnabled = options.gestureEnabled;
|
|
const r22 = value2 !== gestureEnabled && gestureEnabled;
|
|
let gestureDirection = options.gestureDirection;
|
|
gestureDirection = value2 === gestureDirection ? r10.gestureDirection : gestureDirection;
|
|
let transitionSpec = options.transitionSpec;
|
|
transitionSpec = value2 === transitionSpec ? r10.transitionSpec : transitionSpec;
|
|
const cardStyleInterpolator = options.cardStyleInterpolator;
|
|
const r24 = value2 !== cardStyleInterpolator ? cardStyleInterpolator : r26 === false ? (require(5446) /* metro dependency 5446 */).forNoAnimation : r10.cardStyleInterpolator;
|
|
let headerStyleInterpolator = options.headerStyleInterpolator;
|
|
headerStyleInterpolator = value2 === headerStyleInterpolator ? r10.headerStyleInterpolator : headerStyleInterpolator;
|
|
const cardOverlayEnabled = options.cardOverlayEnabled;
|
|
const r25 = value2 !== cardOverlayEnabled ? cardOverlayEnabled : options.presentation !== 'transparentModal' || (require(5433) /* metro dependency 5433 */).getIsModalPresentation(r24);
|
|
const headerMode = r9.options.headerMode;
|
|
if (headerMode != null) {
|
|
r10 = headerMode;
|
|
} else {
|
|
r12 = options.presentation !== 'modal' && options.presentation !== 'transparentModal';
|
|
r12 = r12 && (r8 == null ? value2 : r8.options.presentation) !== 'modal';
|
|
r12 = r12 && (r8 == null ? value2 : r8.options.presentation) !== 'transparentModal';
|
|
value17 = 'screen';
|
|
if (r12) {
|
|
value18 = environment.__proto__.__proto__;
|
|
(require(5433) /* metro dependency 5433 */).getIsModalPresentation(r24);
|
|
r10 = value17;
|
|
} else {
|
|
r10 = value17;
|
|
}
|
|
}
|
|
const object2 = {route: a0};
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Object2 = global.Object;
|
|
object2.descriptor = Reflect.apply(assign, Object, [{}, r9, {options: Object2.assign({}, r9.options,
|
|
{animationEnabled: r26, cardOverlayEnabled: r25, cardStyleInterpolator: r24, gestureDirection: gestureDirection,
|
|
gestureEnabled: r22, headerStyleInterpolator: headerStyleInterpolator, transitionSpec: transitionSpec,
|
|
headerMode: r10})}]);
|
|
const object3 = {};
|
|
object3.current = getProgressFromGesture(property4, require.layout, r9);
|
|
object3.next = r5 ? (r8 == null ? value2 : r8.options.presentation) === 'transparentModal' ? value2 : getProgressFromGesture(r5,
|
|
require.layout, r8) : value2;
|
|
object3.previous = r4 ? getProgressFromGesture(r4, require.layout, r7) : value2;
|
|
object2.progress = object3;
|
|
object2.__memo = [require.layout, r9, r8, r7, property4, r5, r4];
|
|
return property3 && object2.__memo.every(_fun47807) ? property3 : object2;
|
|
}
|
|
|
|
function _fun47794(a0, a1) { // fn#47794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:2028, offset: 0x011cd53e, size: 116 bytes, params: 3, frame: 23
|
|
var r0;
|
|
var object2;
|
|
var binding;
|
|
if (height !== a0.layout.height) {
|
|
object2 = {};
|
|
binding = env0_2;
|
|
object2.layout = binding;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
object2.headerHeights = getHeaderHeights(a0.scenes, a1.insets, a1.isParentHeaderShown, a1.isParentModal,
|
|
binding,
|
|
a0.headerHeights);
|
|
r0 = object2;
|
|
} else if (width === a0.layout.width) {
|
|
r0 = null;
|
|
} else {
|
|
object2 = {};
|
|
binding = env0_2;
|
|
object2.layout = binding;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
object2.headerHeights = getHeaderHeights(a0.scenes, a1.insets, a1.isParentHeaderShown, a1.isParentModal,
|
|
binding,
|
|
a0.headerHeights);
|
|
r0 = object2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun47796({headerHeights}) { // fn#47796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:2270, offset: 0x011cd5e5, size: 100 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var object2;
|
|
var Object;
|
|
var assign;
|
|
var value3;
|
|
if (headerHeights[route.key] === height) {
|
|
r0 = null;
|
|
} else {
|
|
object2 = {};
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
object2.headerHeights = Reflect.apply(assign, Object, [{}, headerHeights, env3_3({}, route.key, height)]);
|
|
r0 = object2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun47799({descriptor}) { // fn#47799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:2582, offset: 0x011cd6bc, size: 38 bytes, params: 2, frame: 2
|
|
return descriptor.route.key === env0_0.key;
|
|
}
|
|
|
|
function _fun47807(a0, a1) { // fn#47807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5610:7978, offset: 0x011ce46b, size: 29 bytes, params: 3, frame: 2
|
|
return env0_0.__memo[a1] === a0;
|
|
}
|
|
|