134 lines
4.2 KiB
JavaScript
134 lines
4.2 KiB
JavaScript
// Module ID: 1792
|
|
// Function ID: 1793
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 1657, 1762, 1698]
|
|
|
|
// Module 1792 (_isNativeReflectConstruct)
|
|
import noopDefault from "noop" /* 19 */;
|
|
import _inheritsDefault from "_inherits" /* 98 */;
|
|
import closure_2 from "_classCallCheck" /* 41 */;
|
|
import closure_3 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_4 from "_getPrototypeOf" /* 95 */;
|
|
import importDefaultResult from "_createClass" /* 42 */;
|
|
import noop from "noop" /* 19 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import isJest from "isJest" /* 1657 */;
|
|
|
|
const LayoutAnimationConfig = arg1;
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
function SkipEntering(children) {
|
|
const tmp = callback4(children.shouldSkip);
|
|
closure_0 = tmp;
|
|
const tmp2 = callback4(children.itemKey);
|
|
if (children.itemKey !== tmp2.current) {
|
|
({ shouldSkip: tmp.current, itemKey: tmp2.current } = children);
|
|
}
|
|
const items = [tmp, children.itemKey];
|
|
callback3(() => {
|
|
closure_0.current = false;
|
|
}, items);
|
|
return jsx(closure_10 ? context : context.Provider, { value: tmp, children: children.children });
|
|
}
|
|
({ Children: c5, useEffect: closure_6, useRef: error, Component, createContext } = noop);
|
|
noopDefault;
|
|
let closure_10 = isJest.isReact19();
|
|
const context = createContext(null);
|
|
class LayoutAnimationConfig {
|
|
constructor() {
|
|
self = this;
|
|
tmp = closure_2(this, LayoutAnimationConfig);
|
|
tmp2 = closure_4;
|
|
obj = closure_4(LayoutAnimationConfig);
|
|
tmp3 = closure_3;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp7 = globalThis;
|
|
_Reflect = Reflect;
|
|
tmp8 = arguments;
|
|
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
|
|
} else {
|
|
tmp4 = arguments;
|
|
tmp5 = arguments;
|
|
constructResult = obj(...arguments);
|
|
}
|
|
return tmp3(self, constructResult);
|
|
}
|
|
}
|
|
_inheritsDefault(LayoutAnimationConfig, Component);
|
|
isJest = {
|
|
key: "getMaybeWrappedChildren",
|
|
value: function getMaybeWrappedChildren() {
|
|
let self = this;
|
|
self = this;
|
|
if (closure_1_5.count(this.props.children) > 1) {
|
|
if (self.props.skipExiting) {
|
|
let children = closure_1_5.map(self.props.children, (children) => <self itemKey={self.props.itemKey} skipExiting>{arg0}</self>);
|
|
}
|
|
return children;
|
|
}
|
|
children = self.props.children;
|
|
}
|
|
};
|
|
let items = [
|
|
isJest,
|
|
{
|
|
key: "setShouldAnimateExiting",
|
|
value: function setShouldAnimateExiting() {
|
|
const self = this;
|
|
if (1 === closure_5.count(this.props.children)) {
|
|
const findNodeHandleResult = LayoutAnimationConfig(1762).findNodeHandle(self);
|
|
if (findNodeHandleResult) {
|
|
const result = tmp(1698).setShouldAnimateExitingForTag(findNodeHandleResult, !self.props.skipExiting);
|
|
const tmpResult = tmp(1698);
|
|
}
|
|
const obj = LayoutAnimationConfig(1762);
|
|
tmp = LayoutAnimationConfig;
|
|
}
|
|
}
|
|
},
|
|
{
|
|
key: "componentWillUnmount",
|
|
value: function componentWillUnmount() {
|
|
const self = this;
|
|
if (undefined !== this.props.skipExiting) {
|
|
const result = self.setShouldAnimateExiting();
|
|
}
|
|
}
|
|
},
|
|
{
|
|
key: "render",
|
|
value: function render() {
|
|
const self = this;
|
|
const maybeWrappedChildren = this.getMaybeWrappedChildren();
|
|
let tmp2 = maybeWrappedChildren;
|
|
if (undefined !== this.props.skipEntering) {
|
|
const obj = { itemKey: null, shouldSkip: null, children: null };
|
|
obj[0] = self.props.itemKey;
|
|
obj[1] = self.props.skipEntering;
|
|
obj[2] = maybeWrappedChildren;
|
|
tmp2 = <SkipEntering itemKey={null} shouldSkip={null}>{null}</SkipEntering>;
|
|
}
|
|
return tmp2;
|
|
}
|
|
}
|
|
];
|
|
|
|
export const SkipEnteringContext = context;
|
|
export const LayoutAnimationConfig = importDefaultResult(LayoutAnimationConfig, items);
|