276 lines
15 KiB
JavaScript
276 lines
15 KiB
JavaScript
/* Metro module 1717; source: unknown; dependencies: [6, 7, 99, 100, 1718, 1707, 1715] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import Module00099 from './module-00099.js'; /* Metro dependency 99 */
|
|
import Module00100 from './module-00100.js'; /* Metro dependency 100 */
|
|
|
|
function _fun18702(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:6, offset: 0x00e93fe9, size: 195 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const executeForEachEventHandler = function(a0, a1) {
|
|
var r4;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var property;
|
|
for (propertyName in a0) {
|
|
property = a0[propertyName];
|
|
if (!isWorkletEventHandler(property)) {
|
|
r4 = propertyName2;
|
|
continue;
|
|
}
|
|
a1(propertyName, property.workletEventHandler);
|
|
r4 = propertyName2;
|
|
}
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = Module00100;
|
|
const env0_5 = value('managedComponent');
|
|
const env0_6 = value('componentOptions');
|
|
const env0_7 = value('eventViewTag');
|
|
exports.NativeEventsManager = _fun18705();
|
|
function isWorkletEventHandler(a0) { // fn#18703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:2007, offset: 0x00e940ac, size: 84 bytes, params: 2, frame: 15
|
|
return (require(1707) /* metro dependency 1707 */).has('workletEventHandler',
|
|
a0) && a0.workletEventHandler instanceof (require(1715) /* metro dependency 1715 */).WorkletEventHandler;
|
|
}
|
|
|
|
function _fun18705() { // fn#18705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:206, offset: 0x00e94142, size: 128 bytes, params: 1, frame: 15
|
|
return CreateClass(NativeEventsManager, [{key: 'attachEvents', value: value_18707}, {key: 'detachEvents',
|
|
value: value_18709}, {key: 'updateEvents', value: value_18711}, {key: 'getEventViewTag', value: value_18715}]);
|
|
function NativeEventsManager(a0, a1) { // fn#18706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:227, offset: 0x00e941c2, size: 183 bytes, params: 3, frame: 20
|
|
let value = environment.__proto__;
|
|
let binding = env1_2;
|
|
binding(this, NativeEventsManager);
|
|
let Object = global.Object;
|
|
let defineProperty = Object.defineProperty;
|
|
binding = env1_5;
|
|
Reflect.apply(defineProperty, Object, [this, binding, {writable: true, value: undefined}]);
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
const binding2 = env1_6;
|
|
Reflect.apply(defineProperty, Object, [this, binding2, {writable: true, value: undefined}]);
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
const binding3 = env1_7;
|
|
Reflect.apply(defineProperty, Object, [this, binding3, {'writable': true, 'value': -1}]);
|
|
const binding4 = env1_4;
|
|
binding4(this, binding)[binding] = a0;
|
|
binding4(this, binding2)[binding2] = a1;
|
|
value = binding4(this, binding3);
|
|
const getEventViewTag = this.getEventViewTag;
|
|
value[binding3] = Reflect.apply(getEventViewTag, this, []);
|
|
}
|
|
|
|
function value_18707() { // fn#18707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:551, offset: 0x00e94279, size: 54 bytes, params: 1, frame: 15
|
|
const executeForEachEventHandlerBinding = executeForEachEventHandler;
|
|
const binding = env1_4;
|
|
const binding2 = env1_5;
|
|
executeForEachEventHandlerBinding(binding(this, binding2)[binding2].props, _fun18708);
|
|
function _fun18708(a0, a1) { // fn#18708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:633, offset: 0x00e942af, size: 50 bytes, params: 3, frame: 15
|
|
const registerForEvents = a1.registerForEvents;
|
|
const binding = env2_4;
|
|
const binding2 = env0_0;
|
|
const binding3 = env2_7;
|
|
Reflect.apply(registerForEvents, a1, [binding(binding2, binding3)[binding3], a0]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_18709() { // fn#18709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:711, offset: 0x00e942e1, size: 54 bytes, params: 1, frame: 15
|
|
const executeForEachEventHandlerBinding = executeForEachEventHandler;
|
|
const binding = env1_4;
|
|
const binding2 = env1_5;
|
|
executeForEachEventHandlerBinding(binding(this, binding2)[binding2].props, _fun18710);
|
|
function _fun18710(a0, a1) { // fn#18710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:793, offset: 0x00e94317, size: 46 bytes, params: 3, frame: 15
|
|
const unregisterFromEvents = a1.unregisterFromEvents;
|
|
const binding = env2_4;
|
|
const binding2 = env0_0;
|
|
const binding3 = env2_7;
|
|
Reflect.apply(unregisterFromEvents, a1, [binding(binding2, binding3)[binding3]]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_18711(a0) { // fn#18711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:872, offset: 0x00e94345, size: 154 bytes, params: 2, frame: 18
|
|
var executeForEachEventHandlerBinding;
|
|
var binding4;
|
|
const env0_0 = a0;
|
|
const eventViewTag = this.getEventViewTag(true);
|
|
let binding = env1_4;
|
|
const binding2 = env1_7;
|
|
if (binding(this, binding2)[binding2] !== eventViewTag) {
|
|
executeForEachEventHandler(a0, _fun18712);
|
|
binding = env1_4;
|
|
binding4 = env1_7;
|
|
binding(this, binding4)[binding4] = eventViewTag;
|
|
this.attachEvents();
|
|
} else {
|
|
executeForEachEventHandlerBinding = executeForEachEventHandler;
|
|
executeForEachEventHandlerBinding(a0, _fun18713);
|
|
binding = env1_4;
|
|
var binding3 = env1_5;
|
|
executeForEachEventHandlerBinding(binding(this, binding3)[binding3].props, _fun18714);
|
|
}
|
|
function _fun18712(a0, a1) { // fn#18712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:992, offset: 0x00e943df, size: 46 bytes, params: 3, frame: 15
|
|
const unregisterFromEvents = a1.unregisterFromEvents;
|
|
const binding = env2_4;
|
|
const binding2 = env0_1;
|
|
const binding3 = env2_7;
|
|
Reflect.apply(unregisterFromEvents, a1, [binding(binding2, binding3)[binding3]]);
|
|
}
|
|
|
|
function _fun18713(a0, a1) { // fn#18713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:1113, offset: 0x00e9440d, size: 170 bytes, params: 3, frame: 18
|
|
var unregisterFromEvents;
|
|
var binding4;
|
|
var binding5;
|
|
var binding6;
|
|
var binding7;
|
|
let binding = env2_4;
|
|
const binding2 = env0_1;
|
|
const binding3 = env2_5;
|
|
const property = binding(binding2, binding3)[binding3].props[a0];
|
|
if (property) {
|
|
if (isWorkletEventHandler(property) && property.workletEventHandler !== a1) {
|
|
unregisterFromEvents = a1.unregisterFromEvents;
|
|
binding = env2_4;
|
|
binding6 = env0_1;
|
|
binding7 = env2_7;
|
|
Reflect.apply(unregisterFromEvents, a1, [binding(binding6, binding7)[binding7]]);
|
|
property.workletEventHandler.registerForEvents(binding(binding6, binding7)[binding7]);
|
|
}
|
|
} else {
|
|
unregisterFromEvents = a1.unregisterFromEvents;
|
|
binding = env2_4;
|
|
binding4 = env0_1;
|
|
binding5 = env2_7;
|
|
Reflect.apply(unregisterFromEvents, a1, [binding(binding4, binding5)[binding5]]);
|
|
}
|
|
}
|
|
|
|
function _fun18714(a0, a1) { // fn#18714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:1378, offset: 0x00e944b7, size: 62 bytes, params: 3, frame: 15
|
|
var registerForEvents;
|
|
var value2;
|
|
var binding;
|
|
var binding2;
|
|
var binding3;
|
|
if (!env0_0[a0]) {
|
|
registerForEvents = a1.registerForEvents;
|
|
value2 = environment.__proto__.__proto__;
|
|
binding = env2_4;
|
|
binding2 = env0_1;
|
|
binding3 = env2_7;
|
|
Reflect.apply(registerForEvents, a1, [binding(binding2, binding3)[binding3]]);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function value_18715() { // fn#18715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1844:1463, offset: 0x00e944f5, size: 407 bytes, params: 1, frame: 19
|
|
var r4;
|
|
var binding4;
|
|
var findNodeHandle;
|
|
var moduleValue;
|
|
var binding5;
|
|
var scrollableNode;
|
|
let r0 = arguments.length > 0 && arguments[0] !== undefined && arguments[0];
|
|
value = environment.__proto__;
|
|
let binding = env1_4;
|
|
const binding2 = env1_5;
|
|
const _componentRef = binding(this, binding2)[binding2]._componentRef;
|
|
if (_componentRef != null) {
|
|
var getScrollableNode = _componentRef.getScrollableNode;
|
|
if (getScrollableNode) {
|
|
scrollableNode = _componentRef.getScrollableNode();
|
|
if (typeof scrollableNode === 'number') {
|
|
r0 = scrollableNode;
|
|
} else {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(scrollableNode);
|
|
r0 = value ?? -1;
|
|
}
|
|
return r0;
|
|
}
|
|
}
|
|
binding = env1_4;
|
|
const binding3 = env1_6;
|
|
const property = binding(this, binding3)[binding3];
|
|
if (property == null) {
|
|
if (r0) {
|
|
if (_componentRef == null) {
|
|
if (_componentRef == null) {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
} else if (_componentRef._nativeTag) {
|
|
r4 = _componentRef.__nativeTag ?? _componentRef._nativeTag ?? -1;
|
|
} else {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
}
|
|
} else if (_componentRef.__nativeTag) {
|
|
r4 = _componentRef.__nativeTag ?? _componentRef._nativeTag ?? -1;
|
|
} else if (_componentRef == null) {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
} else if (_componentRef._nativeTag) {
|
|
r4 = _componentRef.__nativeTag ?? _componentRef._nativeTag ?? -1;
|
|
} else {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
}
|
|
r0 = r4;
|
|
} else {
|
|
binding = env1_4;
|
|
binding4 = env1_5;
|
|
r0 = binding(this, binding4)[binding4].getComponentViewTag();
|
|
}
|
|
} else if (property.setNativeProps) {
|
|
moduleValue = require(1718) /* metro dependency 1718 */;
|
|
findNodeHandle = moduleValue.findNodeHandle;
|
|
binding = env1_4;
|
|
binding5 = env1_5;
|
|
r0 = Reflect.apply(findNodeHandle, moduleValue, [binding(this, binding5)[binding5]]) ?? -1;
|
|
} else if (r0) {
|
|
if (_componentRef == null) {
|
|
if (_componentRef == null) {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
} else if (_componentRef._nativeTag) {
|
|
r4 = _componentRef.__nativeTag ?? _componentRef._nativeTag ?? -1;
|
|
} else {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
}
|
|
} else if (_componentRef.__nativeTag) {
|
|
r4 = _componentRef.__nativeTag ?? _componentRef._nativeTag ?? -1;
|
|
} else if (_componentRef == null) {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
} else if (_componentRef._nativeTag) {
|
|
r4 = _componentRef.__nativeTag ?? _componentRef._nativeTag ?? -1;
|
|
} else {
|
|
value = require(1718) /* metro dependency 1718 */;
|
|
value = value.findNodeHandle(_componentRef);
|
|
r4 = value ?? -1;
|
|
}
|
|
r0 = r4;
|
|
} else {
|
|
binding = env1_4;
|
|
binding4 = env1_5;
|
|
r0 = binding(this, binding4)[binding4].getComponentViewTag();
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun18702, 1717, [6, 7, 99, 100, 1718, 1707,
|
|
1715]) /* metro module 1717, dependencies: [6, 7, 99, 100, 1718, 1707, 1715] */;
|