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

148 lines
7.6 KiB
React

/* Metro module 1748; source: unknown; dependencies: [6, 7, 15, 17, 18, 31, 33, 1613, 1718, 1654] */
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 * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */
function _fun19353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:6, offset: 0x00ea7421, size: 296 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
const env0_7 = value.Children;
const Component = value.Component;
const createContext = value.createContext;
const env0_8 = value.useEffect;
const env0_9 = value.useRef;
React;
const env0_11 = (Module01613Module).isReact19();
value = createContext(null);
const value2 = _fun19359(Component);
exports.SkipEnteringContext = value;
exports.LayoutAnimationConfig = value2;
function _isNativeReflectConstruct_19354() { // fn#19354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:252, offset: 0x00ea7549, 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_19354_isNativeReflectConstruct = function() {
return !!result;
})();
}
function SkipEntering(a0) { // fn#19357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:507, offset: 0x00ea75a7, size: 165 bytes, params: 2, frame: 17
const value2 = useRef(a0.shouldSkip);
const value3 = useRef(a0.itemKey);
if (a0.itemKey !== value3.current) {
value2.current = a0.shouldSkip;
value3.current = a0.itemKey;
}
useEffect(_fun19358, [value2, a0.itemKey]);
const binding = env0_11;
const binding2 = env0_12;
return ((Component) => <Component value={value2}>{a0.children}</Component>)(binding ? binding2 : binding2.Provider);
function _fun19358() { // fn#19358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:640, offset: 0x00ea764c, size: 19 bytes, params: 1, frame: 2
env0_0.current = false;
}
}
function _fun19359(a0) { // fn#19359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:750, offset: 0x00ea765f, size: 141 bytes, params: 2, frame: 16
const LayoutAnimationConfig2 = LayoutAnimationConfig;
Inherits(LayoutAnimationConfig2, a0);
return CreateClass(LayoutAnimationConfig2, [{key: 'getMaybeWrappedChildren', value: value_19361},
{key: 'setShouldAnimateExiting', value: value_19363}, {key: 'componentWillUnmount', value: function() {
if (this.props.skipExiting !== undefined) {
this.setShouldAnimateExiting();
}
}}, {key: 'render', value: value_19365}]);
function LayoutAnimationConfig() { // fn#19360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:762, offset: 0x00ea76ec, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, LayoutAnimationConfig);
const value3 = env1_5(LayoutAnimationConfig);
return env1_4(this, _isNativeReflectConstruct_19354() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_19361() { // fn#19361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:1098, offset: 0x00ea775d, size: 101 bytes, params: 1, frame: 15
var environment;
const value = environment.__proto__;
return Children.count(this.props.children) > 1 && this.props.skipExiting ? Children.map(this.props.children,
_fun19362) : this.props.children;
function _fun19362(a0) { // fn#19362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:1233, offset: 0x00ea77c2, size: 63 bytes, params: 2, frame: 13
return (
<LayoutAnimationConfig itemKey={env0_0.props.itemKey} skipExiting>
{a0}
</LayoutAnimationConfig>
);
}
}
function value_19363() { // fn#19363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:1391, offset: 0x00ea7801, size: 123 bytes, params: 1, frame: 15
var nodeHandle;
let value = environment.__proto__;
if (Children.count(this.props.children) === 1) {
nodeHandle = (require(1718) /* metro dependency 1718 */).findNodeHandle(this);
if (nodeHandle) {
value = require(1654) /* metro dependency 1654 */;
value.setShouldAnimateExitingForTag(nodeHandle, !this.props.skipExiting);
}
}
}
function value_19365() { // fn#19365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1875:1721, offset: 0x00ea789e, size: 92 bytes, params: 1, frame: 17
var r0;
var value2;
var itemKey;
let value = this.getMaybeWrappedChildren();
let props = this.props;
if (props.skipEntering === undefined) {
r0 = value;
} else {
value2 = environment.__proto__;
props = this.props;
itemKey = props.itemKey;
props = this.props;
value = (
<SkipEntering itemKey={itemKey} shouldSkip={props.skipEntering}>
{value}
</SkipEntering>
);
r0 = value;
}
return r0;
}
}
}
global.__d(_fun19353, 1748, [6, 7, 15, 17, 18, 31, 33, 1613, 1718,
1654]) /* metro module 1748, dependencies: [6, 7, 15, 17, 18, 31, 33, 1613, 1718, 1654] */;