175 lines
7.4 KiB
React
175 lines
7.4 KiB
React
/* Metro module 1714; source: unknown; dependencies: [6, 7, 1707, 1682, 1706, 1715, 1659, 1613] */
|
|
function _fun18669(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:6, offset: 0x00e93429, size: 113 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const dummyListener = function() {
|
|
};
|
|
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 */;
|
|
exports.PropsFilter = _fun18671();
|
|
}
|
|
|
|
function _fun18671() { // fn#18671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:148, offset: 0x00e9349a, size: 57 bytes, params: 1, frame: 14
|
|
return env0_3(PropsFilter, [{key: 'filterNonAnimatedProps', value: function(a0) {
|
|
var propertyName;
|
|
var env0_0 = a0;
|
|
var env0_1 = this;
|
|
var props = a0.props;
|
|
var env0_2 = props;
|
|
for (propertyName in props) {
|
|
var env0_4 = propertyName;
|
|
_fun18674();
|
|
}
|
|
return {};
|
|
}}]);
|
|
}
|
|
|
|
function PropsFilter() { // fn#18672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:169, offset: 0x00e934d3, size: 61 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
env1_2(this, PropsFilter);
|
|
const Map = global.Map;
|
|
this._initialPropsMap = new Map();
|
|
}
|
|
|
|
function value_18673(a0) { // fn#18673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:281, offset: 0x00e93510, size: 73 bytes, params: 2, frame: 17
|
|
var propertyName;
|
|
const env0_0 = a0;
|
|
for (propertyName in a0.props) {
|
|
var env0_4 = propertyName;
|
|
value_18673_loop();
|
|
}
|
|
return {};
|
|
}
|
|
|
|
function value_18673_loop() { // fn#18674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:344, owner: value_18673._loop, offset: 0x00e93559, size: 513 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var value2;
|
|
var moduleValue;
|
|
var moduleValue2;
|
|
var animatedProps;
|
|
var Object;
|
|
var keys;
|
|
var style;
|
|
var value4;
|
|
var moduleValue4;
|
|
var value;
|
|
const property = props[env0_4];
|
|
const env0_0 = property;
|
|
if (env0_4 === 'style') {
|
|
style = props.style;
|
|
value4 = environment.__proto__.__proto__;
|
|
moduleValue4 = require(1707) /* metro dependency 1707 */;
|
|
env0_3[env0_4] = moduleValue4.flattenArray(style ?? []).map(_fun18675);
|
|
} else if (env0_4 === 'animatedProps') {
|
|
animatedProps = props.animatedProps;
|
|
if (animatedProps.initial !== undefined) {
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value = animatedProps.initial.value;
|
|
value = Reflect.apply(keys, Object, [value]);
|
|
value.forEach(_fun18676);
|
|
}
|
|
} else {
|
|
value2 = environment.__proto__.__proto__;
|
|
moduleValue = require(1707) /* metro dependency 1707 */;
|
|
if (moduleValue.has('workletEventHandler', property)) {
|
|
if (property.workletEventHandler instanceof (require(1715) /* metro dependency 1715 */).WorkletEventHandler) {
|
|
if (property.workletEventHandler.eventNames.length > 0) {
|
|
property.workletEventHandler.eventNames.forEach(_fun18677);
|
|
} else {
|
|
env0_3[env0_4] = dummyListener;
|
|
}
|
|
} else {
|
|
moduleValue2 = require(1659) /* metro dependency 1659 */;
|
|
if (moduleValue2.isSharedValue(property)) {
|
|
if (env0_0._isFirstRender) {
|
|
env0_3[env0_4] = property.value;
|
|
}
|
|
} else if (!(env0_4 === 'onGestureHandlerStateChange' && (require(1613) /* metro dependency 1613 */).isChromeDebugger())) {
|
|
env0_3[env0_4] = property;
|
|
}
|
|
}
|
|
} else {
|
|
moduleValue2 = require(1659) /* metro dependency 1659 */;
|
|
if (moduleValue2.isSharedValue(property)) {
|
|
if (env0_0._isFirstRender) {
|
|
env0_3[env0_4] = property.value;
|
|
}
|
|
} else if (!(env0_4 === 'onGestureHandlerStateChange' && (require(1613) /* metro dependency 1613 */).isChromeDebugger())) {
|
|
env0_3[env0_4] = property;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun18675(a0) { // fn#18675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:444, offset: 0x00e9375a, size: 249 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var value2;
|
|
var moduleValue2;
|
|
var getInlineStyle;
|
|
var value3;
|
|
var value4;
|
|
var _initialPropsMap;
|
|
var set;
|
|
var Object;
|
|
var assign;
|
|
var initial;
|
|
var value5;
|
|
var value6;
|
|
var moduleValue3;
|
|
var initialUpdaterRun;
|
|
let value = a0;
|
|
if (value) {
|
|
if (value.viewDescriptors) {
|
|
value4 = environment.__proto__;
|
|
if (env1_0._isFirstRender) {
|
|
_initialPropsMap = env1_1._initialPropsMap;
|
|
set = _initialPropsMap.set;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
initial = value.initial;
|
|
value5 = initial.value;
|
|
value6 = environment.__proto__.__proto__.__proto__;
|
|
moduleValue3 = require(1682) /* metro dependency 1682 */;
|
|
initialUpdaterRun = moduleValue3.initialUpdaterRun;
|
|
initial = value.initial;
|
|
Reflect.apply(set, _initialPropsMap, [value, Reflect.apply(assign, Object, [{}, value5,
|
|
Reflect.apply(initialUpdaterRun, moduleValue3, [initial.updater])])]);
|
|
}
|
|
_initialPropsMap = env1_1._initialPropsMap;
|
|
value = _initialPropsMap.get(value);
|
|
return value ?? ({});
|
|
}
|
|
value2 = environment.__proto__.__proto__.__proto__;
|
|
}
|
|
const moduleValue = require(1706) /* metro dependency 1706 */;
|
|
if (moduleValue.hasInlineStyles(value)) {
|
|
moduleValue2 = require(1706) /* metro dependency 1706 */;
|
|
getInlineStyle = moduleValue2.getInlineStyle;
|
|
value3 = environment.__proto__;
|
|
value = Reflect.apply(getInlineStyle, moduleValue2, [value, env1_0._isFirstRender]);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun18676(a0) { // fn#18676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:860, offset: 0x00e93853, size: 51 bytes, params: 2, frame: 6
|
|
let value = environment.__proto__;
|
|
const binding = env1_3;
|
|
const initial = animatedProps.initial;
|
|
value = undefined;
|
|
binding[a0] = initial == null ? value : initial.value[a0];
|
|
return value;
|
|
}
|
|
|
|
function _fun18677(a0) { // fn#18677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1841:1112, offset: 0x00e93886, size: 98 bytes, params: 2, frame: 18
|
|
const binding = env1_3;
|
|
const moduleValue = require(1707) /* metro dependency 1707 */;
|
|
binding[a0] = moduleValue.has('listeners',
|
|
env0_0.workletEventHandler) ? env0_0.workletEventHandler.listeners[a0] : dummyListener;
|
|
}
|
|
|