130 lines
5.8 KiB
React
130 lines
5.8 KiB
React
/* Metro module 1748; source: unknown; dependencies: [6, 7, 15, 17, 18, 31, 33, 1613, 1718, 1654] */
|
|
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});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
let value = require(31) /* metro dependency 31 */;
|
|
const env0_7 = value.Children;
|
|
const Component = value.Component;
|
|
const createContext = value.createContext;
|
|
const env0_8 = value.useEffect;
|
|
const env0_9 = value.useRef;
|
|
importDefault(31) /* metro dependency 31 */;
|
|
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_11 = (require(1613) /* metro dependency 1613 */).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 _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 closure = LayoutAnimationConfig;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{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 _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 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 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;
|
|
}
|
|
|
|
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>
|
|
);
|
|
}
|
|
|