2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 142
|
|
|
|
|
// Function ID: 2311
|
|
|
|
|
// Name: _isNativeReflectConstruct
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [6, 7, 15, 17, 18, 139, 135, 138, 143, 145]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 142 (_isNativeReflectConstruct)
|
2026-07-23 10:11:24 +00:00
|
|
|
import getRendererProxy from "getRendererProxy";
|
|
|
|
|
import getRawNativeDOMForTests from "getRawNativeDOMForTests";
|
|
|
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn";
|
|
|
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
|
|
|
|
import _inherits from "_inherits";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
|
|
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
return closure_0;
|
|
|
|
|
}
|
|
|
|
|
const result = _isNativeReflectConstruct();
|
|
|
|
|
}
|
|
|
|
|
function noop() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
export default (function replaceConstructorWithoutSuper(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
class ReactNativeElement {
|
|
|
|
|
constructor(arg0, arg1, arg2, arg3) {
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = outer1_0(outer1_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
setOwnerDocumentResult = obj.setOwnerDocument(this, arg3);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj2 = outer1_0(outer1_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
setInstanceHandleResult = obj2.setInstanceHandle(this, arg2);
|
|
|
|
|
this.__nativeTag = arg0;
|
|
|
|
|
this.__internalInstanceHandle = arg2;
|
|
|
|
|
this.__viewConfig = arg1;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ReactNativeElement.prototype = arg0.prototype;
|
|
|
|
|
return ReactNativeElement;
|
2026-07-23 10:11:24 +00:00
|
|
|
})(((arg0) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
class ReactNativeElement {
|
|
|
|
|
constructor(arg0, arg1, arg2, arg3) {
|
|
|
|
|
self = this;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp = outer1_3(this, ReactNativeElement);
|
2026-07-20 16:05:17 +00:00
|
|
|
items = [, ];
|
|
|
|
|
items[0] = arg2;
|
|
|
|
|
items[1] = arg3;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = outer1_6(ReactNativeElement);
|
|
|
|
|
tmp2 = outer1_5;
|
|
|
|
|
if (outer1_9()) {
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp4 = globalThis;
|
|
|
|
|
_Reflect = Reflect;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp5 = outer1_6;
|
|
|
|
|
constructResult = Reflect.construct(obj, items, outer1_6(self).constructor);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
constructResult = obj.apply(self, items);
|
|
|
|
|
}
|
|
|
|
|
tmp2Result = tmp2(self, constructResult);
|
|
|
|
|
tmp2Result.__nativeTag = arg0;
|
|
|
|
|
tmp2Result.__internalInstanceHandle = arg2;
|
|
|
|
|
tmp2Result.__viewConfig = arg1;
|
|
|
|
|
return tmp2Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
callback2(ReactNativeElement, arg0);
|
|
|
|
|
let obj = {
|
|
|
|
|
key: "offsetHeight",
|
|
|
|
|
get() {
|
2026-07-23 10:11:24 +00:00
|
|
|
return Math.round(ReactNativeElement(outer1_2[5]).getBoundingClientRect(this, { includeTransform: false }).height);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
let items = [obj, , , , , , , , , , ];
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = {
|
|
|
|
|
key: "offsetLeft",
|
|
|
|
|
get() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const nativeElementReference = ReactNativeElement(outer1_2[6]).getNativeElementReference(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != nativeElementReference) {
|
|
|
|
|
const _Math = Math;
|
2026-07-23 10:11:24 +00:00
|
|
|
return Math.round(outer1_1(outer1_2[7]).getOffset(nativeElementReference)[2]);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj = ReactNativeElement(outer1_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[1] = obj;
|
|
|
|
|
obj = {
|
|
|
|
|
key: "offsetParent",
|
|
|
|
|
get() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const nativeElementReference = ReactNativeElement(outer1_2[6]).getNativeElementReference(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != nativeElementReference) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const offset = outer1_1(outer1_2[7]).getOffset(nativeElementReference);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != offset[0]) {
|
2026-07-23 10:11:24 +00:00
|
|
|
return ReactNativeElement(outer1_2[6]).getPublicInstanceFromInstanceHandle(offset[0]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj2 = outer1_1(outer1_2[7]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[2] = obj;
|
|
|
|
|
items[3] = {
|
|
|
|
|
key: "offsetTop",
|
|
|
|
|
get() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const nativeElementReference = ReactNativeElement(outer1_2[6]).getNativeElementReference(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != nativeElementReference) {
|
|
|
|
|
const _Math = Math;
|
2026-07-23 10:11:24 +00:00
|
|
|
return Math.round(outer1_1(outer1_2[7]).getOffset(nativeElementReference)[1]);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj = ReactNativeElement(outer1_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[4] = {
|
|
|
|
|
key: "offsetWidth",
|
|
|
|
|
get() {
|
2026-07-23 10:11:24 +00:00
|
|
|
return Math.round(ReactNativeElement(outer1_2[5]).getBoundingClientRect(this, { includeTransform: false }).width);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[5] = {
|
|
|
|
|
key: "blur",
|
|
|
|
|
value: function blur() {
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_1(outer1_2[8]).blurTextInput(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[6] = {
|
|
|
|
|
key: "focus",
|
|
|
|
|
value: function focus() {
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_1(outer1_2[8]).focusTextInput(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[7] = {
|
|
|
|
|
key: "measure",
|
|
|
|
|
value: function measure(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const nativeElementReference = ReactNativeElement(outer1_2[6]).getNativeElementReference(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != nativeElementReference) {
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_1(outer1_2[7]).measure(nativeElementReference, arg0);
|
|
|
|
|
const obj2 = outer1_1(outer1_2[7]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[8] = {
|
|
|
|
|
key: "measureInWindow",
|
|
|
|
|
value: function measureInWindow(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const nativeElementReference = ReactNativeElement(outer1_2[6]).getNativeElementReference(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != nativeElementReference) {
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_1(outer1_2[7]).measureInWindow(nativeElementReference, arg0);
|
|
|
|
|
const obj2 = outer1_1(outer1_2[7]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[9] = {
|
|
|
|
|
key: "measureLayout",
|
|
|
|
|
value: function measureLayout(arg0, arg1, arg2) {
|
|
|
|
|
let tmp = arg1;
|
|
|
|
|
let tmp2 = arg2;
|
|
|
|
|
if (arg0 instanceof ReactNativeElement) {
|
|
|
|
|
const self = this;
|
2026-07-23 10:11:24 +00:00
|
|
|
const nativeElementReference = ReactNativeElement(outer1_2[6]).getNativeElementReference(this);
|
|
|
|
|
const obj = ReactNativeElement(outer1_2[6]);
|
|
|
|
|
const nativeElementReference1 = ReactNativeElement(outer1_2[6]).getNativeElementReference(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp8) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj3 = outer1_1(outer1_2[7]);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == tmp2) {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp2 = outer1_8;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (null == tmp) {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp = outer1_8;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
obj3.measureLayout(nativeElementReference, nativeElementReference1, tmp2, tmp);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj2 = ReactNativeElement(outer1_2[6]);
|
|
|
|
|
tmp8 = null != nativeElementReference && null != nativeElementReference1;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[10] = {
|
|
|
|
|
key: "setNativeProps",
|
|
|
|
|
value: function setNativeProps(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = ReactNativeElement(outer1_2[9]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = obj.create(arg0, this.__viewConfig.validAttributes);
|
2026-07-23 10:11:24 +00:00
|
|
|
const nativeElementReference = ReactNativeElement(outer1_2[6]).getNativeElementReference(this);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp3) {
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_1(outer1_2[7]).setNativeProps(nativeElementReference, obj);
|
|
|
|
|
const obj3 = outer1_1(outer1_2[7]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return callback(ReactNativeElement, items);
|
2026-07-23 10:11:24 +00:00
|
|
|
})(require("_isNativeReflectConstruct")));
|