Files
discord-decomp/sources/by-id/module-01645-createAnimatedComponent.jsx
T
2026-07-28 01:06:53 +03:00

1690 lines
90 KiB
React

/* Metro module 1645; source: unknown; dependencies: [6, 7, 15, 17, 18, 1646, 31, 27, 33, 1613, 1664, 44, 1705, 1706, 1714, 1716, 1654, 1635, 1717, 1719, 1713, 1697, 1650, 1639, 1621, 1723, 1638, 1707, 1709, 1724, 1725, 1726, 1748, 1749] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import React from './module-00031-React.js'; /* Metro dependency 31 */
import Module01705 from './module-01705.js'; /* Metro dependency 1705 */
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module01621Module from './module-01621.js'; /* Metro dependency 1621 */
import * as Module01635Module from './module-01635.js'; /* Metro dependency 1635 */
import * as FindHostInstanceModule from './module-01639-findHostInstance.js'; /* Metro dependency 1639 */
import * as Module01646Module from './module-01646.js'; /* Metro dependency 1646 */
import * as Module01706Module from './module-01706.js'; /* Metro dependency 1706 */
import * as PropsFilterModule from './module-01714-PropsFilter.js'; /* Metro dependency 1714 */
import * as Module01748Module from './module-01748.jsx'; /* Metro dependency 1748 */
import * as Module01749Module from './module-01749.js'; /* Metro dependency 1749 */
function _fun17929(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:6, offset: 0x00e7a3cd, size: 381 bytes, params: 8, frame: 20
const env0_0 = require;
const filterOutAnimatedStyles = function(a0) {
var r1;
var r0;
var value = a0;
if (value) {
if (global.Array.isArray(value)) {
value = value.filter(_fun17934);
value = value.map(_fun17935);
r1 = value;
} else {
r1 = value == null ? value : value.viewDescriptors ? {} : value;
}
r0 = r1;
} else {
r0 = value;
}
return r0;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
Module01646Module;
let value = ReactNativeModule;
value.Platform;
const env0_9 = value.processColor;
const env0_10 = value.StyleSheet;
value = require(1613) /* metro dependency 1613 */;
value = value.isWeb();
const env0_13 = (require(1613) /* metro dependency 1613 */).isJest();
const env0_14 = (require(1613) /* metro dependency 1613 */).isReact19();
const env0_15 = (require(1613) /* metro dependency 1613 */).shouldBeUseWeb();
if (value) {
(require(1664) /* metro dependency 1664 */).configureWebLayoutAnimations();
}
exports.createAnimatedComponent = createAnimatedComponent_17936;
function _isNativeReflectConstruct_17930() { // fn#17930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:246, offset: 0x00e7a54a, 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_17930_isNativeReflectConstruct = function() {
return !!result;
})();
}
function filterOutAnimatedStyles(a0) { // fn#17933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:606, offset: 0x00e7a5a8, size: 92 bytes, params: 2, frame: 14
var r1;
var r0;
var Array;
let value = a0;
if (value) {
Array = global.Array;
if (Array.isArray(value)) {
value = value.filter(function(a0) {
var value = a0;
return !(value && 'viewDescriptors' in value);
});
value = value.map(_fun17935);
r1 = value;
} else {
r1 = value == null ? value : value.viewDescriptors ? {} : value;
}
r0 = r1;
} else {
r0 = value;
}
return r0;
function _fun17935(a0) { // fn#17935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:732, offset: 0x00e7a61a, size: 43 bytes, params: 2, frame: 12
var r0;
var value2;
let value = a0;
const Array = global.Array;
if (Array.isArray(value)) {
value2 = environment.__proto__;
value = filterOutAnimatedStyles(value);
r0 = value;
} else {
r0 = value;
}
return r0;
}
}
function createAnimatedComponent_17936(a0, a1) { // fn#17936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:861, offset: 0x00e7a645, size: 305 bytes, params: 3, frame: 19
const env0_0 = a0;
const env0_1 = a1;
if (!env0_14) {
(importDefault(44) /* metro dependency 44 */)(typeof a0 !== 'function' || a0.prototype && a0.prototype.isReactComponent,
"Looks like you're passing a function component `" + a0.name + '` to `createAnimatedComponent` function which supports only class components. Please wrap your function component with `React.forwardRef()` or use a class component instead.');
}
const Component = React.Component;
const value3 = _fun17937(Component);
const SkipEnteringContext = (Module01748Module).SkipEnteringContext;
value3.contextType = SkipEnteringContext;
let r8 = a0.displayName || a0.name;
r8 = !r8 ? 'Component' : r8;
value3.displayName = 'AnimatedComponent(' + r8 + ')';
let value = Module01749Module;
value = value.componentWithRef(_fun17966);
let r1 = a0.displayName || a0.name;
r1 = !r1 ? 'Component' : r1;
value.displayName = r1;
return value;
function _fun17937(a0) { // fn#17937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:1222, offset: 0x00e7a776, size: 398 bytes, params: 2, frame: 16
const AnimatedComponent_179382 = AnimatedComponent_17938;
env1_7(AnimatedComponent_179382, a0);
return env1_4(AnimatedComponent_179382, [{key: 'componentDidMount', value: value_17942},
{key: 'componentWillUnmount', value: value_17943}, {key: '_syncStylePropsBackToReact', value: function(a0) {
var env0_0 = a0;
this.setState(_fun17945);
}}, {key: 'getComponentViewTag', value: function() {
return this._getViewInfo().viewTag;
}}, {key: '_detachStyles', value: value_17947}, {key: '_updateFromNative', value: value_17948},
{key: '_updateReanimatedProps', value: value_17949}, {key: '_getViewInfo', value: value_17951},
{key: '_attachAnimatedStyles', value: value_17952}, {key: 'componentDidUpdate', value: value_17960},
{key: '_configureLayoutAnimation', value: value_17961}, {key: '_configureSharedTransition', value: value_17962},
{key: '_isReducedMotion', value: value_17963}, {key: 'getSnapshotBeforeUpdate', value: value_17964},
{key: 'render', value: value_17965}]);
function AnimatedComponent_17938(a0) { // fn#17938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:1234, offset: 0x00e7a904, size: 592 bytes, params: 2, frame: 21
let binding = env2_3;
const value3 = undefined;
binding(this, AnimatedComponent_17938);
const items2 = [a0];
const value4 = env2_6(AnimatedComponent_17938);
const value7 = env2_5(this, _isNativeReflectConstruct_17930() ? global.Reflect.construct(value4, items2,
env2_6(this).constructor) : value4.apply(this, items2));
value7._styles = null;
value7._isFirstRender = true;
value7.jestAnimatedStyle = {value: {}};
value7.jestAnimatedProps = {value: {}};
value7._componentRef = null;
value7._hasAnimatedRef = false;
value7._componentDOMRef = null;
value7._sharedElementTransition = null;
const defaultImport = Module01705;
const value8 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
const defaultImport2 = new defaultImport();
value7._jsPropsUpdater = defaultImport2 instanceof Object ? defaultImport2 : value8;
const InlinePropManager = (Module01706Module).InlinePropManager;
const value11 = Object.create(InlinePropManager.prototype, {constructor: {value: InlinePropManager}});
const inlinePropManager = new InlinePropManager();
value7._InlinePropManager = inlinePropManager instanceof Object ? inlinePropManager : value11;
const PropsFilter = (PropsFilterModule).PropsFilter;
const value13 = Object.create(PropsFilter.prototype, {constructor: {value: PropsFilter}});
const propsFilter = new PropsFilter();
value7._PropsFilter = propsFilter instanceof Object ? propsFilter : value13;
binding = env2_16;
const value15 = typeof binding === 'bigint' ? binding : +binding;
env2_16 = typeof value15 === 'bigint' ? value15 + 1n : +value15 + 1;
value7.reanimatedID = value15;
value7._willUnmount = false;
value7._resolveComponentRef = _resolveComponentRef;
value7._setComponentRef = (importDefault(1716) /* metro dependency 1716 */)({getForwardedRef: getForwardedRef,
setLocalRef: setLocalRef});
if (env2_13) {
value7.jestAnimatedStyle = {value: {}};
value7.jestAnimatedProps = {value: {}};
}
value7.state = {settledProps: {}, reanimatedProps: {}};
value7.props.entering;
const context = value7.context;
if ((require(1613) /* metro dependency 1613 */).isFabric() && !(context == null ? value3 : context.current)) {
value7._configureLayoutAnimation((require(1635) /* metro dependency 1635 */).LayoutAnimationType.ENTERING,
value7.props.entering);
}
return value7;
function _resolveComponentRef(a0) { // fn#17939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:1842, owner: AnimatedComponent_17938._resolveComponentRef, offset: 0x00e7ab54, size: 114 bytes, params: 2, frame: 11
var r0;
var value2;
let value = a0;
if (value) {
if (value.getAnimatableRef) {
env0_0._hasAnimatedRef = true;
value = value.getAnimatableRef();
r0 = value;
} else {
value2 = environment.__proto__.__proto__.__proto__;
if (env3_15) {
if (value) {
if (value.elementRef) {
env0_0._componentDOMRef = value.elementRef.current;
r0 = value;
} else {
env0_0._componentDOMRef = value;
r0 = value;
}
} else {
env0_0._componentDOMRef = value;
r0 = value;
}
} else {
r0 = value;
}
}
} else {
value2 = environment.__proto__.__proto__.__proto__;
if (env3_15) {
if (value) {
if (value.elementRef) {
env0_0._componentDOMRef = value.elementRef.current;
r0 = value;
} else {
env0_0._componentDOMRef = value;
r0 = value;
}
} else {
env0_0._componentDOMRef = value;
r0 = value;
}
} else {
r0 = value;
}
}
return r0;
}
function getForwardedRef() { // fn#17940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:2068, owner: AnimatedComponent_17938.getForwardedRef, offset: 0x00e7abc6, size: 20 bytes, params: 1, frame: 1
return env0_0.props.forwardedRef;
}
function setLocalRef(a0) { // fn#17941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:2136, owner: AnimatedComponent_17938.setLocalRef, offset: 0x00e7abda, size: 310 bytes, params: 2, frame: 17
var current;
var r2;
var binding;
var props;
var layout;
var entering;
var exiting;
var sharedTransitionTag;
var value2;
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
if (a0) {
if (a0 !== env0_0._componentRef) {
binding = env0_0;
binding._componentRef = binding._resolveComponentRef(a0);
binding._viewInfo = undefined;
}
props = env0_0.props;
layout = props.layout;
entering = props.entering;
exiting = props.exiting;
sharedTransitionTag = props.sharedTransitionTag;
if (layout) {
value2 = environment.__proto__.__proto__.__proto__;
if (!env3_15) {
(require(1654) /* metro dependency 1654 */).enableLayoutAnimations(true, false);
}
if (sharedTransitionTag) {
env0_0._configureSharedTransition();
}
current = env0_0.context?.current;
r2 = entering ? (require(1613) /* metro dependency 1613 */).isFabric() : !entering;
r2 = !r2 ? current : r2;
r2 = !r2 ? env3_12 : r2;
if (!r2) {
binding = env0_0;
binding._configureLayoutAnimation(LayoutAnimationType.ENTERING, binding.props.entering);
}
} else if (entering) {
value2 = environment.__proto__.__proto__.__proto__;
if (!env3_15) {
(require(1654) /* metro dependency 1654 */).enableLayoutAnimations(true, false);
}
if (sharedTransitionTag) {
env0_0._configureSharedTransition();
}
current = env0_0.context?.current;
r2 = entering ? (require(1613) /* metro dependency 1613 */).isFabric() : !entering;
r2 = !r2 ? current : r2;
r2 = !r2 ? env3_12 : r2;
if (!r2) {
binding = env0_0;
binding._configureLayoutAnimation(LayoutAnimationType.ENTERING, binding.props.entering);
}
} else if (exiting) {
value2 = environment.__proto__.__proto__.__proto__;
if (!env3_15) {
(require(1654) /* metro dependency 1654 */).enableLayoutAnimations(true, false);
}
if (sharedTransitionTag) {
env0_0._configureSharedTransition();
}
current = env0_0.context?.current;
r2 = entering ? (require(1613) /* metro dependency 1613 */).isFabric() : !entering;
r2 = !r2 ? current : r2;
r2 = !r2 ? env3_12 : r2;
if (!r2) {
binding = env0_0;
binding._configureLayoutAnimation(LayoutAnimationType.ENTERING, binding.props.entering);
}
} else if (sharedTransitionTag) {
value2 = environment.__proto__.__proto__.__proto__;
if (!env3_15) {
(require(1654) /* metro dependency 1654 */).enableLayoutAnimations(true, false);
}
if (sharedTransitionTag) {
env0_0._configureSharedTransition();
}
current = env0_0.context?.current;
r2 = entering ? (require(1613) /* metro dependency 1613 */).isFabric() : !entering;
r2 = !r2 ? current : r2;
r2 = !r2 ? env3_12 : r2;
if (!r2) {
binding = env0_0;
binding._configureLayoutAnimation(LayoutAnimationType.ENTERING, binding.props.entering);
}
}
}
}
}
function value_17942() { // fn#17942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:2954, offset: 0x00e7ad10, size: 854 bytes, params: 1, frame: 23
var NativeEventsManager;
var value2;
var value3;
var nativeEventsManager;
var _componentDOMRef;
var dummyClone;
var firstChild;
var appendChild;
var entering;
var moduleValue3;
var getReducedMotionFromConfig;
var context;
var moduleValue4;
var callbackV;
const value = environment.__proto__.__proto__;
if (!env2_12) {
NativeEventsManager = (require(1717) /* metro dependency 1717 */).NativeEventsManager;
value2 = environment.__proto__;
value3 = Object.create(NativeEventsManager.prototype, {constructor: {value: NativeEventsManager}});
nativeEventsManager = new NativeEventsManager(this, require);
this._NativeEventsManager = nativeEventsManager instanceof Object ? nativeEventsManager : value3;
}
const _NativeEventsManager = this._NativeEventsManager;
if (_NativeEventsManager != null) {
_NativeEventsManager.attachEvents();
}
this._jsPropsUpdater.addOnJSPropsChangeListener(this);
this._attachAnimatedStyles();
const _InlinePropManager = this._InlinePropManager;
_InlinePropManager.attachInlineProps(this, this._getViewInfo());
const componentViewTag = this.getComponentViewTag();
const value6 = undefined;
let r4 = (require(1613) /* metro dependency 1613 */).isFabric() && componentViewTag !== -1;
if (r4) {
(require(1719) /* metro dependency 1719 */).PropsRegistryGarbageCollector.registerView(componentViewTag, this);
}
if (componentViewTag !== -1) {
(require(1713) /* metro dependency 1713 */).ComponentRegistry.register(componentViewTag, this);
}
let _configureLayoutAnimation = this._configureLayoutAnimation;
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
const LAYOUT = LayoutAnimationType.LAYOUT;
let props = this.props;
Reflect.apply(_configureLayoutAnimation, this, [LAYOUT, props.layout]);
_configureLayoutAnimation = this._configureLayoutAnimation;
const EXITING = LayoutAnimationType.EXITING;
Reflect.apply(_configureLayoutAnimation, this, [EXITING, this.props.exiting]);
if (env2_12) {
_componentDOMRef = this._componentDOMRef;
if (_componentDOMRef) {
_componentDOMRef = this._componentDOMRef;
dummyClone = _componentDOMRef.dummyClone;
if (dummyClone != null) {
firstChild = dummyClone.firstChild;
if (firstChild) {
while (true) {
appendChild = _componentDOMRef.appendChild;
firstChild = dummyClone.firstChild;
Reflect.apply(appendChild, _componentDOMRef, [firstChild]);
if (dummyClone == null) {
break;
}
firstChild = dummyClone.firstChild;
if (firstChild) {
continue;
}
break;
}
}
}
delete _componentDOMRef.dummyClone;
props = this.props;
if (props.exiting) {
(require(1664) /* metro dependency 1664 */).saveSnapshot(_componentDOMRef);
}
props = this.props;
entering = props.entering;
if (entering) {
moduleValue3 = require(1664) /* metro dependency 1664 */;
getReducedMotionFromConfig = moduleValue3.getReducedMotionFromConfig;
entering = this.props.entering;
if (Reflect.apply(getReducedMotionFromConfig, moduleValue3, [entering])) {
this._isFirstRender = false;
entering = this.props.entering;
callbackV = entering.callbackV;
if (callbackV != null) {
callbackV.call(entering, true);
}
return value6;
}
context = this.context;
if (context == null ? value6 : context.current) {
if (_componentDOMRef.style) {
_componentDOMRef.style.visibility = 'initial';
}
} else {
moduleValue4 = require(1664) /* metro dependency 1664 */;
moduleValue4.startWebLayoutAnimation(this.props, _componentDOMRef, LayoutAnimationType.ENTERING);
}
r4 = !env2_15 && (require(1613) /* metro dependency 1613 */).isFabric();
r4 = r4 && this._willUnmount;
r4 = r4 && typeof componentViewTag === 'number';
if (r4) {
(require(1654) /* metro dependency 1654 */).unmarkNodeAsRemovable(componentViewTag);
}
this._isFirstRender = false;
return value6;
}
this._isFirstRender = false;
return value6;
}
}
if (!env2_15 && (require(1613) /* metro dependency 1613 */).isFabric() && this._willUnmount && typeof componentViewTag === 'number') {
(require(1654) /* metro dependency 1654 */).unmarkNodeAsRemovable(componentViewTag);
}
this._isFirstRender = false;
return value6;
}
function value_17943() { // fn#17943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:4349, offset: 0x00e7b066, size: 782 bytes, params: 1, frame: 23
var r5;
var shadowNodeWrapper;
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
var _viewInfo;
var binding;
const _NativeEventsManager = this._NativeEventsManager;
if (_NativeEventsManager != null) {
_NativeEventsManager.detachEvents();
}
this._jsPropsUpdater.removeOnJSPropsChangeListener(this);
let value = this.getComponentViewTag();
const value3 = undefined;
if ((require(1613) /* metro dependency 1613 */).isFabric() && value !== -1) {
(require(1719) /* metro dependency 1719 */).PropsRegistryGarbageCollector.unregisterView(value);
}
this._detachStyles();
this._InlinePropManager.detachInlineProps();
if (this.props.sharedTransitionTag) {
this._configureSharedTransition(true);
}
const _sharedElementTransition = this._sharedElementTransition;
if (_sharedElementTransition != null) {
_sharedElementTransition.unregisterTransition(this.getComponentViewTag(), true);
}
const exiting = this.props.exiting;
if (value !== -1) {
(require(1713) /* metro dependency 1713 */).ComponentRegistry.unregister(value);
}
if (env2_12) {
if (this._componentDOMRef) {
if (exiting) {
value = require(1664) /* metro dependency 1664 */;
if (value.getReducedMotionFromConfig(exiting)) {
if (exiting.callbackV != null) {
exiting.callbackV(true);
}
return value3;
}
value = require(1697) /* metro dependency 1697 */;
value.addHTMLMutationObserver();
value = require(1664) /* metro dependency 1664 */;
value.startWebLayoutAnimation(this.props, this._componentDOMRef, LayoutAnimationType.EXITING);
_viewInfo = this._viewInfo;
shadowNodeWrapper = _viewInfo == null ? value3 : _viewInfo.shadowNodeWrapper;
binding = env2_15;
value = !binding;
if (binding) {
r5 = value;
} else {
value = require(1613) /* metro dependency 1613 */;
value = value.isFabric();
r5 = value;
}
r5 = r5 && shadowNodeWrapper;
if (r5) {
(require(1654) /* metro dependency 1654 */).markNodeAsRemovable(shadowNodeWrapper);
}
this._willUnmount = true;
return value3;
}
if (exiting) {
if (!env2_12) {
value = require(1613) /* metro dependency 1613 */;
if (!value.isFabric()) {
if ('getReduceMotion' in exiting) {
if (typeof exiting.getReduceMotion === 'function') {
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig(exiting.getReduceMotion());
r5 = value;
} else {
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig();
r5 = value;
}
} else {
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig();
r5 = value;
}
if (!r5) {
this._configureLayoutAnimation(LayoutAnimationType.EXITING, exiting);
}
}
}
}
_viewInfo = this._viewInfo;
shadowNodeWrapper = _viewInfo == null ? value3 : _viewInfo.shadowNodeWrapper;
binding = env2_15;
value = !binding;
if (binding) {
r5 = value;
} else {
value = require(1613) /* metro dependency 1613 */;
value = value.isFabric();
r5 = value;
}
r5 = r5 && shadowNodeWrapper;
if (r5) {
(require(1654) /* metro dependency 1654 */).markNodeAsRemovable(shadowNodeWrapper);
}
this._willUnmount = true;
return value3;
}
}
if (exiting) {
if (!env2_12) {
value = require(1613) /* metro dependency 1613 */;
if (!value.isFabric()) {
if ('getReduceMotion' in exiting) {
if (typeof exiting.getReduceMotion === 'function') {
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig(exiting.getReduceMotion());
r5 = value;
} else {
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig();
r5 = value;
}
} else {
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig();
r5 = value;
}
if (!r5) {
this._configureLayoutAnimation(LayoutAnimationType.EXITING, exiting);
}
}
}
}
_viewInfo = this._viewInfo;
shadowNodeWrapper = _viewInfo == null ? value3 : _viewInfo.shadowNodeWrapper;
binding = env2_15;
value = !binding;
if (binding) {
r5 = value;
} else {
value = require(1613) /* metro dependency 1613 */;
value = value.isFabric();
r5 = value;
}
r5 = r5 && shadowNodeWrapper;
if (r5) {
(require(1654) /* metro dependency 1654 */).markNodeAsRemovable(shadowNodeWrapper);
}
this._willUnmount = true;
return value3;
}
function value_17944(a0) { // fn#17944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:5626, offset: 0x00e7b374, size: 32 bytes, params: 2, frame: 11
const env0_0 = a0;
this.setState(_fun17945);
function _fun17945({settledProps}) { // fn#17945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:5680, offset: 0x00e7b394, size: 47 bytes, params: 2, frame: 16
const Object = global.Object;
return {settledProps: Object.assign({}, settledProps, env0_0)};
}
}
function value_17948(a0) { // fn#17948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:6171, offset: 0x00e7b46f, size: 97 bytes, params: 2, frame: 16
var _componentRef;
const value = environment.__proto__;
if (require == null) {
_componentRef = this._componentRef;
if (!(_componentRef == null || _componentRef.setNativeProps == null)) {
_componentRef.setNativeProps(a0);
}
} else if (require.setNativeProps) {
require.setNativeProps(this._componentRef, a0);
} else {
_componentRef = this._componentRef;
if (!(_componentRef == null || _componentRef.setNativeProps == null)) {
_componentRef.setNativeProps(a0);
}
}
}
function value_17949(a0) { // fn#17949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:6384, offset: 0x00e7b4d0, size: 209 bytes, params: 2, frame: 30
var r13;
var r18;
var propertyName;
var propertyName2;
var property;
var endsWith;
var startsWith;
var value2;
if (require != null) {
reducibleJoin2: while (true) {
if (require.disableReactSync) {
return undefined;
}
break reducibleJoin2;
}
}
const object = {};
const properties = Object.keys(a0);
const properties2 = 0;
const properties3 = properties.length;
if (properties !== undefined) {
r13 = properties2;
reducibleLoop3: while (true) {
propertyName = properties[r13];
propertyName2 = r13 + 1;
if (propertyName === undefined) {
break reducibleLoop3;
}
property = a0[propertyName];
if (propertyName !== 'color') {
endsWith = propertyName.endsWith;
reducibleJoin6: while (true) {
if (Reflect.apply(endsWith, propertyName, ['Color'])) {
break reducibleJoin6;
}
if (propertyName == 'top') {
return undefined;
}
if (propertyName == 'bottom') {
return undefined;
}
startsWith = propertyName.startsWith;
if (Reflect.apply(startsWith, propertyName, ['margin'])) {
return undefined;
}
startsWith = propertyName.startsWith;
if (Reflect.apply(startsWith, propertyName, ['padding'])) {
return undefined;
}
r18 = property;
object[propertyName] = r18;
r13 = propertyName2;
continue reducibleLoop3;
}
}
if (property) {
reducibleJoin8: while (true) {
if (typeof property === 'string') {
value2 = processColor(property);
r18 = value2;
object[propertyName] = r18;
r13 = propertyName2;
continue reducibleLoop3;
}
break reducibleJoin8;
}
}
if (propertyName == 'top') {
return undefined;
}
if (propertyName == 'bottom') {
return undefined;
}
startsWith = propertyName.startsWith;
if (Reflect.apply(startsWith, propertyName, ['margin'])) {
return undefined;
}
startsWith = propertyName.startsWith;
if (Reflect.apply(startsWith, propertyName, ['padding'])) {
return undefined;
}
r18 = property;
object[propertyName] = r18;
r13 = propertyName2;
continue reducibleLoop3;
}
}
this.setState(_fun17950);
function _fun17950({reanimatedProps}) { // fn#17950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:6664, offset: 0x00e7b5a1, size: 47 bytes, params: 2, frame: 16
const Object = global.Object;
return {reanimatedProps: Object.assign({}, reanimatedProps, env0_0)};
}
}
function value_17951() { // fn#17951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:6770, offset: 0x00e7b5d0, size: 302 bytes, params: 1, frame: 20
var r4;
var _componentDOMRef;
var viewConfig;
var viewName;
var viewInfo;
var viewTag;
var isFabric2;
var value3;
var _componentRef;
if (this._viewInfo !== undefined) {
return this._viewInfo;
}
let value = environment.__proto__.__proto__;
if (env2_15) {
_componentRef = this._componentRef;
_componentDOMRef = this._componentDOMRef;
value = null;
this._viewInfo = {viewTag: _componentRef, viewName: value, shadowNodeWrapper: value, viewConfig: value};
if (_componentDOMRef) {
this._viewInfo.DOMElement = _componentDOMRef;
}
return this._viewInfo;
}
const hostInstance = (FindHostInstanceModule).findHostInstance(this);
if (hostInstance) {
viewInfo = (require(1723) /* metro dependency 1723 */).getViewInfo(hostInstance);
viewTag = viewInfo.viewTag;
viewName = viewInfo.viewName;
viewConfig = viewInfo.viewConfig;
isFabric2 = (require(1613) /* metro dependency 1613 */).isFabric();
value3 = null;
if (isFabric2) {
value = require(1638) /* metro dependency 1638 */;
value = value.getShadowNodeWrapperFromRef(this, hostInstance);
r4 = value;
} else {
r4 = value3;
}
_componentDOMRef = value3;
this._viewInfo = {viewTag: viewTag, viewName: viewName, shadowNodeWrapper: r4, viewConfig: viewConfig};
if (_componentDOMRef) {
this._viewInfo.DOMElement = _componentDOMRef;
}
return this._viewInfo;
}
const ReanimatedError = (Module01621Module).ReanimatedError;
throw new ReanimatedError('Cannot find host instance for this component. Maybe it renders nothing?');
}
function value_17952() { // fn#17952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:7402, offset: 0x00e7b6fe, size: 741 bytes, params: 1, frame: 29
var environment;
var r14;
var viewDescriptors;
var r2;
var r9;
var r13;
var r12;
var r4;
var r3;
var value;
var props;
var style;
var value2;
var moduleValue;
var flattenArray;
var value3;
var value4;
var animatedProps;
var _styles;
var _animatedProps;
var _getViewInfo;
var value5;
var viewTag;
var viewName;
var shadowNodeWrapper;
var viewConfig;
var animatedProps2;
var length;
var value6;
var moduleValue2;
var adaptViewConfig;
var Set;
var prototype;
var value7;
var set;
var value8;
var value9;
var length2;
var value10;
var every;
var value11;
var animatedProps3;
var value12;
var value13;
var animatedProps4;
var value14;
var animatedProps5;
var has;
var value15;
var value_17952_loop2;
var iterator;
var iterator2;
var item;
var item2;
var error;
var value16;
var jestAnimatedProps;
var Object;
var assign;
var jestAnimatedProps2;
var value17;
var initial;
var value18;
var value19;
var jestAnimatedValues;
var forEach;
var value20;
var remove;
var value21;
var value22;
var add;
var styleUpdaterContainer;
exceptionSkip27: while (true) {
exceptionLanding27: while (true) {
value = undefined;
var env0_0 = this;
props = this.props;
style = props.style;
if (style) {
value2 = environment.__proto__.__proto__;
moduleValue = require(1707) /* metro dependency 1707 */;
flattenArray = moduleValue.flattenArray;
style = this.props.style;
value3 = Reflect.apply(flattenArray, moduleValue, [style]);
value4 = ((a0) => a0.filter(_fun17954))(value3);
r14 = value4;
} else {
r14 = [];
}
var env0_1 = r14;
props = this.props;
animatedProps = props.animatedProps;
_styles = this._styles;
var env0_2 = _styles;
this._styles = r14;
_animatedProps = this._animatedProps;
this._animatedProps = animatedProps;
_getViewInfo = this._getViewInfo;
value5 = Reflect.apply(_getViewInfo, this, []);
viewTag = value5.viewTag;
var env0_3 = viewTag;
viewName = value5.viewName;
var env0_4 = viewName;
shadowNodeWrapper = value5.shadowNodeWrapper;
var env0_5 = shadowNodeWrapper;
viewConfig = value5.viewConfig;
props = this.props;
animatedProps2 = props.animatedProps;
reducibleJoin5: while (true) {
if (animatedProps2 == null) {
viewDescriptors = value;
break reducibleJoin5;
}
viewDescriptors = animatedProps2.viewDescriptors;
break reducibleJoin5;
}
reducibleJoin7: while (true) {
if (viewDescriptors) {
r2 = viewDescriptors;
break reducibleJoin7;
}
length = r14.length;
r2 = length;
break reducibleJoin7;
}
if (r2) {
r2 = viewConfig;
}
reducibleJoin10: while (true) {
if (r2) {
value6 = environment.__proto__.__proto__;
moduleValue2 = require(1709) /* metro dependency 1709 */;
adaptViewConfig = moduleValue2.adaptViewConfig;
Reflect.apply(adaptViewConfig, moduleValue2, [viewConfig]);
break reducibleJoin10;
}
break reducibleJoin10;
}
Set = global.Set;
prototype = Set.prototype;
value7 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value8 = set instanceof Object ? set : value7;
var isStyleAttached = function({viewDescriptors}) {
return viewDescriptors.has(viewTag);
};
value9 = _styles != null;
reducibleJoin12: while (true) {
if (value9) {
length = r14.length;
length2 = _styles.length;
value10 = length === length2;
r9 = value10;
break reducibleJoin12;
}
r9 = value9;
break reducibleJoin12;
}
reducibleJoin14: while (true) {
if (r9) {
every = r14.every;
value11 = Reflect.apply(every, r14, [_fun17956]);
r9 = value11;
break reducibleJoin14;
}
break reducibleJoin14;
}
props = this.props;
animatedProps3 = props.animatedProps;
value12 = animatedProps3 != null;
reducibleJoin16: while (true) {
if (value12) {
viewDescriptors = animatedProps3.viewDescriptors;
r2 = viewDescriptors;
break reducibleJoin16;
}
r2 = value12;
break reducibleJoin16;
}
value13 = !r2;
reducibleJoin20: while (true) {
if (r2) {
props = this.props;
animatedProps4 = props.animatedProps;
value14 = _animatedProps === animatedProps4;
reducibleJoin19: while (true) {
if (value14) {
props = this.props;
animatedProps5 = props.animatedProps;
viewDescriptors = animatedProps5.viewDescriptors;
has = viewDescriptors.has;
value15 = Reflect.apply(has, viewDescriptors, [viewTag]);
r13 = value15;
break reducibleJoin19;
}
r13 = value14;
break reducibleJoin19;
}
r2 = r13;
break reducibleJoin20;
}
r2 = value13;
break reducibleJoin20;
}
reducibleJoin49: while (true) {
reducibleJoin47: while (true) {
if (r9) {
if (r2) {
break reducibleJoin49;
}
reducibleJoin28: while (true) {
if (!_styles) {
break reducibleJoin28;
}
value_17952_loop2 = value_17952_loop;
iterator = _styles[Symbol.iterator]();
iterator2 = iterator.next;
r14 = iterator;
reducibleLoop24: while (true) {
item2 = Reflect.apply(iterator2, r14, []);
item = item2.value;
item2 = item2.done ? undefined : r14;
if (item2 === value) {
break reducibleJoin28;
}
try {
value_17952_loop2(item);
} catch (error) {
break exceptionLanding27;
}
r14 = item2;
continue reducibleLoop24;
}
}
reducibleJoin37: while (true) {
if (animatedProps) {
value16 = environment.__proto__.__proto__;
if (env2_13) {
jestAnimatedProps = this.jestAnimatedProps;
Object = global.Object;
assign = Object.assign;
jestAnimatedProps2 = this.jestAnimatedProps;
value17 = jestAnimatedProps2.value;
reducibleJoin33: while (true) {
if (animatedProps == null) {
r14 = value;
break reducibleJoin33;
}
initial = animatedProps.initial;
if (initial == null) {
r14 = value;
break reducibleJoin33;
}
value18 = initial.value;
r14 = value18;
break reducibleJoin33;
}
jestAnimatedProps.value = Reflect.apply(assign, Object, [{}, value17, r14]);
value19 = animatedProps != null;
reducibleJoin35: while (true) {
if (value19) {
jestAnimatedValues = animatedProps.jestAnimatedValues;
r12 = jestAnimatedValues;
break reducibleJoin35;
}
r12 = value19;
break reducibleJoin35;
}
if (r12) {
jestAnimatedValues = animatedProps.jestAnimatedValues;
jestAnimatedProps = this.jestAnimatedProps;
jestAnimatedValues.current = jestAnimatedProps;
break reducibleJoin37;
}
break reducibleJoin37;
}
break reducibleJoin37;
}
break reducibleJoin37;
}
reducibleJoin39: while (true) {
if (r9) {
break reducibleJoin39;
}
forEach = value8.forEach;
Reflect.apply(forEach, value8, [_fun17959]);
break reducibleJoin39;
}
reducibleJoin41: while (true) {
if (_animatedProps) {
props = this.props;
animatedProps = props.animatedProps;
value20 = _animatedProps !== animatedProps;
r4 = value20;
break reducibleJoin41;
}
r4 = _animatedProps;
break reducibleJoin41;
}
reducibleJoin43: while (true) {
if (r4) {
viewDescriptors = _animatedProps.viewDescriptors;
remove = viewDescriptors.remove;
Reflect.apply(remove, viewDescriptors, [viewTag]);
break reducibleJoin43;
}
break reducibleJoin43;
}
reducibleJoin45: while (true) {
if (r2) {
r2 = !r2;
r3 = value;
break reducibleJoin45;
}
props = this.props;
animatedProps = props.animatedProps;
value22 = animatedProps != null;
r2 = value22;
r3 = animatedProps;
break reducibleJoin45;
}
if (r2) {
viewDescriptors = r3.viewDescriptors;
r2 = viewDescriptors;
break reducibleJoin47;
}
break reducibleJoin47;
}
reducibleJoin28: while (true) {
if (!_styles) {
break reducibleJoin28;
}
value_17952_loop2 = value_17952_loop;
iterator = _styles[Symbol.iterator]();
iterator2 = iterator.next;
r14 = iterator;
reducibleLoop24: while (true) {
item2 = Reflect.apply(iterator2, r14, []);
item = item2.value;
item2 = item2.done ? undefined : r14;
if (item2 === value) {
break reducibleJoin28;
}
try {
value_17952_loop2(item);
} catch (error) {
break exceptionLanding27;
}
r14 = item2;
continue reducibleLoop24;
}
}
reducibleJoin37: while (true) {
if (animatedProps) {
value16 = environment.__proto__.__proto__;
if (env2_13) {
jestAnimatedProps = this.jestAnimatedProps;
Object = global.Object;
assign = Object.assign;
jestAnimatedProps2 = this.jestAnimatedProps;
value17 = jestAnimatedProps2.value;
reducibleJoin33: while (true) {
if (animatedProps == null) {
r14 = value;
break reducibleJoin33;
}
initial = animatedProps.initial;
if (initial == null) {
r14 = value;
break reducibleJoin33;
}
value18 = initial.value;
r14 = value18;
break reducibleJoin33;
}
jestAnimatedProps.value = Reflect.apply(assign, Object, [{}, value17, r14]);
value19 = animatedProps != null;
reducibleJoin35: while (true) {
if (value19) {
jestAnimatedValues = animatedProps.jestAnimatedValues;
r12 = jestAnimatedValues;
break reducibleJoin35;
}
r12 = value19;
break reducibleJoin35;
}
if (r12) {
jestAnimatedValues = animatedProps.jestAnimatedValues;
jestAnimatedProps = this.jestAnimatedProps;
jestAnimatedValues.current = jestAnimatedProps;
break reducibleJoin37;
}
break reducibleJoin37;
}
break reducibleJoin37;
}
break reducibleJoin37;
}
reducibleJoin39: while (true) {
if (r9) {
break reducibleJoin39;
}
forEach = value8.forEach;
Reflect.apply(forEach, value8, [_fun17959]);
break reducibleJoin39;
}
reducibleJoin41: while (true) {
if (_animatedProps) {
props = this.props;
animatedProps = props.animatedProps;
value20 = _animatedProps !== animatedProps;
r4 = value20;
break reducibleJoin41;
}
r4 = _animatedProps;
break reducibleJoin41;
}
reducibleJoin43: while (true) {
if (r4) {
viewDescriptors = _animatedProps.viewDescriptors;
remove = viewDescriptors.remove;
Reflect.apply(remove, viewDescriptors, [viewTag]);
break reducibleJoin43;
}
break reducibleJoin43;
}
value21 = !r2;
reducibleJoin45: while (true) {
if (r2) {
r2 = value21;
r3 = value;
break reducibleJoin45;
}
props = this.props;
animatedProps = props.animatedProps;
value22 = animatedProps != null;
r2 = value22;
r3 = animatedProps;
break reducibleJoin45;
}
if (r2) {
viewDescriptors = r3.viewDescriptors;
r2 = viewDescriptors;
break reducibleJoin47;
}
break reducibleJoin47;
}
if (r2) {
props = this.props;
animatedProps = props.animatedProps;
viewDescriptors = animatedProps.viewDescriptors;
add = viewDescriptors.add;
props = this.props;
animatedProps = props.animatedProps;
styleUpdaterContainer = animatedProps.styleUpdaterContainer;
Reflect.apply(add, viewDescriptors, [{tag: viewTag, name: viewName,
shadowNodeWrapper: shadowNodeWrapper},
styleUpdaterContainer]);
break reducibleJoin49;
}
break reducibleJoin49;
}
return value;
break exceptionSkip27;
}
try {
item2.return();
} catch {
}
throw error;
break exceptionSkip27;
}
function onlyAnimatedStyles(a0) { // fn#17953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:7471, owner: value_17952.onlyAnimatedStyles, offset: 0x00e7b9e3, size: 22 bytes, params: 2, frame: 11
return a0.filter(function(a0) {
return a0?.viewDescriptors;
});
}
function _fun17956(a0, a1) { // fn#17956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:8039, offset: 0x00e7ba2b, size: 37 bytes, params: 3, frame: 12
return a0 === _styles[a1] && isStyleAttached(a0);
}
function value_17952_loop(a0) { // fn#17957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:8239, owner: value_17952._loop, offset: 0x00e7ba50, size: 60 bytes, params: 2, frame: 13
var viewDescriptors;
const env0_0 = a0;
const binding = env0_1;
if (!binding.some(_fun17958)) {
viewDescriptors = a0.viewDescriptors;
viewDescriptors.remove(viewTag);
}
function _fun17958(a0) { // fn#17958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:8265, offset: 0x00e7ba8c, size: 39 bytes, params: 2, frame: 12
var r0;
let value = a0 !== env0_0;
if (value) {
r0 = value;
} else {
value = environment.__proto__;
value = !isStyleAttached(a0);
r0 = value;
}
return !r0;
}
}
function _fun17959(a0) { // fn#17959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:8585, offset: 0x00e7bab3, size: 148 bytes, params: 2, frame: 18
var binding;
var jestAnimatedStyle;
var Object;
var jestAnimatedValues;
a0.viewDescriptors.add({tag: viewTag, name: viewName, shadowNodeWrapper: shadowNodeWrapper},
a0.styleUpdaterContainer);
if (env3_13) {
binding = env0_0;
jestAnimatedStyle = binding.jestAnimatedStyle;
Object = global.Object;
jestAnimatedStyle.value = Object.assign({}, binding.jestAnimatedStyle.value, a0.initial.value);
jestAnimatedValues = a0.jestAnimatedValues;
jestAnimatedStyle = binding.jestAnimatedStyle;
jestAnimatedValues.current = jestAnimatedStyle;
}
}
}
function value_17960(a0, a1, a2) { // fn#17960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:9105, offset: 0x00e7bb47, size: 451 bytes, params: 4, frame: 22
var moduleValue;
var moduleValue2;
var getReducedMotionFromConfig;
var tryActivateLayoutTransition;
var callbackV;
let _configureLayoutAnimation = this._configureLayoutAnimation;
let value = environment.__proto__.__proto__;
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
const LAYOUT = LayoutAnimationType.LAYOUT;
let props = this.props;
let layout = props.layout;
Reflect.apply(_configureLayoutAnimation, this, [LAYOUT, layout, a0.layout]);
_configureLayoutAnimation = this._configureLayoutAnimation;
const EXITING = LayoutAnimationType.EXITING;
Reflect.apply(_configureLayoutAnimation, this, [EXITING, this.props.exiting, a0.exiting]);
if (!(this.props.sharedTransitionTag === undefined && a0.sharedTransitionTag === undefined)) {
this._configureSharedTransition();
}
const _NativeEventsManager = this._NativeEventsManager;
if (_NativeEventsManager != null) {
_NativeEventsManager.updateEvents(a0);
}
this._attachAnimatedStyles();
const _InlinePropManager = this._InlinePropManager;
_InlinePropManager.attachInlineProps(this, this._getViewInfo());
if (env2_12 && this.props.exiting && this._componentDOMRef) {
moduleValue = require(1664) /* metro dependency 1664 */;
moduleValue.saveSnapshot(this._componentDOMRef);
}
if (env2_12) {
if (a2) {
props = this.props;
layout = props.layout;
if (layout) {
moduleValue2 = require(1664) /* metro dependency 1664 */;
getReducedMotionFromConfig = moduleValue2.getReducedMotionFromConfig;
props = this.props;
layout = props.layout;
if (Reflect.apply(getReducedMotionFromConfig, moduleValue2, [layout])) {
layout = this.props.layout;
callbackV = layout.callbackV;
if (callbackV != null) {
callbackV.call(layout, true);
}
return undefined;
}
value = require(1664) /* metro dependency 1664 */;
tryActivateLayoutTransition = value.tryActivateLayoutTransition;
props = this.props;
Reflect.apply(tryActivateLayoutTransition, value, [props, this._componentDOMRef, a2]);
return undefined;
}
return undefined;
}
}
}
function value_17961(a0, a1, a2) { // fn#17961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:9967, offset: 0x00e7bd0a, size: 280 bytes, params: 4, frame: 23
var r9;
var r1;
var r0;
var moduleValue;
var updateLayoutAnimations;
var moduleValue2;
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
var moduleValue3;
let value = a1;
if (!env2_12) {
if (value === a2) {
return undefined;
}
if (this._isReducedMotion(value)) {
value = undefined;
if (a2) {
r9 = value;
value = undefined;
moduleValue = require(1724) /* metro dependency 1724 */;
updateLayoutAnimations = moduleValue.updateLayoutAnimations;
moduleValue2 = require(1613) /* metro dependency 1613 */;
r1 = moduleValue2.isFabric() && a0 === LayoutAnimationType.ENTERING ? this.reanimatedID : this.getComponentViewTag();
if (r9) {
moduleValue3 = require(1725) /* metro dependency 1725 */;
value = moduleValue3.maybeBuild(r9,
a0 === LayoutAnimationType.LAYOUT || this.props == null ? value : this.props.style,
AnimatedComponent_17938.displayName);
r0 = value;
} else {
r0 = r9;
}
Reflect.apply(updateLayoutAnimations, moduleValue, [r1, a0, r0]);
return undefined;
}
return value;
}
r9 = value;
value = undefined;
moduleValue = require(1724) /* metro dependency 1724 */;
updateLayoutAnimations = moduleValue.updateLayoutAnimations;
moduleValue2 = require(1613) /* metro dependency 1613 */;
r1 = moduleValue2.isFabric() && a0 === LayoutAnimationType.ENTERING ? this.reanimatedID : this.getComponentViewTag();
if (r9) {
moduleValue3 = require(1725) /* metro dependency 1725 */;
value = moduleValue3.maybeBuild(r9,
a0 === LayoutAnimationType.LAYOUT || this.props == null ? value : this.props.style,
AnimatedComponent_17938.displayName);
r0 = value;
} else {
r0 = r9;
}
Reflect.apply(updateLayoutAnimations, moduleValue, [r1, a0, r0]);
}
}
function value_17962() { // fn#17962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:10398, offset: 0x00e7be22, size: 211 bytes, params: 1, frame: 19
var r1;
var _sharedElementTransition;
const r6 = arguments.length > 0 && arguments[0] !== undefined && arguments[0];
value = environment.__proto__.__proto__;
if (!env2_12) {
var sharedTransitionTag = this.props.sharedTransitionTag;
if (sharedTransitionTag) {
r1 = this.props.sharedTransitionStyle ?? this._sharedElementTransition;
r1 = r1 ?? new (require(1726) /* metro dependency 1726 */).SharedTransition();
r1.registerTransition(this.getComponentViewTag(), sharedTransitionTag, r6);
this._sharedElementTransition = r1;
return undefined;
}
_sharedElementTransition = this._sharedElementTransition;
if (_sharedElementTransition != null) {
_sharedElementTransition.unregisterTransition(this.getComponentViewTag(), r6);
}
this._sharedElementTransition = null;
}
}
function value_17963(a0) { // fn#17963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:10938, offset: 0x00e7bef5, size: 119 bytes, params: 2, frame: 13
var r0;
var value;
if (a0) {
if ('getReduceMotion' in a0) {
if (typeof a0.getReduceMotion === 'function') {
value = environment.__proto__.__proto__;
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig(a0.getReduceMotion());
r0 = value;
} else {
value = environment.__proto__.__proto__;
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig();
r0 = value;
}
} else {
value = environment.__proto__.__proto__;
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig();
r0 = value;
}
} else {
value = environment.__proto__.__proto__;
value = require(1650) /* metro dependency 1650 */;
value = value.getReduceMotionFromConfig();
r0 = value;
}
return r0;
}
function value_17964() { // fn#17964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:11169, offset: 0x00e7bf6c, size: 77 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = null;
return env2_12 && this.props.layout && (value != this._componentDOMRef && this._componentDOMRef.getBoundingClientRect) ? this._componentDOMRef.getBoundingClientRect() : value;
}
function value_17965() { // fn#17965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:11369, offset: 0x00e7bfb9, size: 685 bytes, params: 1, frame: 30
var r4;
var r10;
var binding;
var moduleValue;
var Array;
var isArray;
var style;
var Object;
var assign;
var moduleValue2;
var object;
var state;
var value10;
var settledProps;
var value11;
var value12;
const value = this._PropsFilter.filterNonAnimatedProps(this);
if (env2_13) {
value.jestAnimatedStyle = this.jestAnimatedStyle;
value.jestAnimatedProps = this.jestAnimatedProps;
}
let r0 = this._isFirstRender && env2_12 && value.entering;
if (r0) {
moduleValue = require(1664) /* metro dependency 1664 */;
r0 = !moduleValue.getReducedMotionFromConfig(value.entering);
}
if (r0) {
Array = global.Array;
isArray = Array.isArray;
style = value.style;
if (Reflect.apply(isArray, Array, [style])) {
style = value.style;
r0 = style.concat([{visibility: 'hidden'}]);
} else {
Object = global.Object;
r0 = Object.assign({}, value.style ?? ({}), {visibility: 'hidden'});
}
value.style = r0;
}
const object3 = {collapsable: false};
const context = this.context;
const value6 = undefined;
if (context == null ? value6 : context.current) {
r4 = value6;
} else {
moduleValue2 = require(1613) /* metro dependency 1613 */;
r4 = moduleValue2.isFabric() ? '' + this.reanimatedID : value6;
}
if (env2_13) {
object = {};
object.jestInlineStyle = this.props.style && filterOutAnimatedStyles(this.props.style);
object.jestAnimatedStyle = this.jestAnimatedStyle;
object.jestAnimatedProps = this.jestAnimatedProps;
r10 = object;
} else {
r10 = {};
}
const moduleValue3 = require(1613) /* metro dependency 1613 */;
if (moduleValue3.isFabric()) {
value10 = StyleSheet.flatten(value.style);
Object = global.Object;
assign = Object.assign;
state = this.state;
settledProps = state.settledProps;
value11 = Reflect.apply(assign, Object, [{}, value10, settledProps]);
value12 = environment.__proto__;
binding = env1_0;
Object = global.Object;
assign = Object.assign;
state = this.state;
settledProps = state.settledProps;
state = this.state;
return ((Component) => <Component {...Reflect.apply(assign, Object, [{nativeID: r4}, value, r10,
{style: value11},
settledProps, state.reanimatedProps, {ref: this._setComponentRef}, object3])} />)(binding);
}
binding = env1_0;
Object = global.Object;
return ((Component) => <Component {...Object.assign({nativeID: r4}, value, r10, this.state.reanimatedProps,
{ref: this._setComponentRef}, object3)} />)(binding);
}
}
function _fun17966(a0, a1) { // fn#17966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:12541, offset: 0x00e7c266, size: 68 bytes, params: 3, frame: 17
let value = environment.__proto__;
const binding = env0_2;
const Object = global.Object;
const assign = Object.assign;
value = null;
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, a0,
value === a1 ? value : {forwardedRef: a1}])} />)(binding);
}
}
}
function _fun17934(a0) { // fn#17934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:678, offset: 0x00e7a604, size: 22 bytes, params: 2, frame: 3
const value = a0;
return !(value && 'viewDescriptors' in value);
}
function value_17947() { // fn#17947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:5881, offset: 0x00e7b3d8, size: 151 bytes, params: 1, frame: 17
var r5;
var r3;
var getComponentViewTag;
var value;
var _styles;
var iterator;
var iterator2;
var item;
var item2;
var viewDescriptors;
var remove;
var error;
var props;
var animatedProps;
var value2;
exceptionSkip8: while (true) {
exceptionLanding8: while (true) {
getComponentViewTag = this.getComponentViewTag;
value = Reflect.apply(getComponentViewTag, this, []);
if (value !== -1) {
_styles = this._styles;
if (_styles === null) {
break;
}
_styles = this._styles;
iterator = _styles[Symbol.iterator]();
iterator2 = iterator.next;
for (r5 = iterator; true; r5 = item2) {
item2 = Reflect.apply(iterator2, r5, []);
item = item2.value;
item2 = item2.done ? undefined : r5;
if (item2 === undefined) {
break;
}
try {
viewDescriptors = item.viewDescriptors;
} catch (error) {
break exceptionLanding8;
}
try {
remove = viewDescriptors.remove;
} catch (error) {
break exceptionLanding8;
}
try {
Reflect.apply(remove, viewDescriptors, [value]);
} catch (error) {
break exceptionLanding8;
}
}
props = this.props;
animatedProps = props.animatedProps;
value2 = animatedProps != null;
if (!value2) {
r3 = value2;
continue;
}
viewDescriptors = animatedProps.viewDescriptors;
r3 = viewDescriptors;
if (r3) {
props = this.props;
animatedProps = props.animatedProps;
viewDescriptors = animatedProps.viewDescriptors;
remove = viewDescriptors.remove;
Reflect.apply(remove, viewDescriptors, [value]);
break;
}
break;
}
return undefined;
break exceptionSkip8;
}
try {
item2.return();
} catch {
}
throw error;
break exceptionSkip8;
}
}
function _fun17954(a0) { // fn#17954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1772:7519, offset: 0x00e7b9f9, size: 22 bytes, params: 2, frame: 3
return a0?.viewDescriptors;
}
global.__d(_fun17929, 1645, [6, 7, 15, 17, 18, 1646, 31, 27, 33, 1613, 1664, 44, 1705, 1706, 1714, 1716, 1654, 1635,
1717, 1719, 1713, 1697, 1650, 1639, 1621, 1723, 1638, 1707, 1709, 1724, 1725, 1726, 1748,
1749]) /* metro module 1645, dependencies: [6, 7, 15, 17, 18, 1646, 31, 27, 33, 1613, 1664, 44, 1705, 1706, 1714, 1716, 1654, 1635, 1717, 1719, 1713, 1697, 1650, 1639, 1621, 1723, 1638, 1707, 1709, 1724, 1725, 1726, 1748, 1749] */;