149 lines
4.3 KiB
JavaScript
149 lines
4.3 KiB
JavaScript
|
|
// Module ID: 140
|
||
|
|
// Function ID: 141
|
||
|
|
// Name: _isNativeReflectConstruct
|
||
|
|
// Dependencies: [41, 42, 93, 95, 98, 129, 131, 139, 136, 141, 138, 143, 137]
|
||
|
|
// Exports: createReactNativeDocument
|
||
|
|
|
||
|
|
// Module 140 (_isNativeReflectConstruct)
|
||
|
|
import _classCallCheck from "_classCallCheck";
|
||
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn";
|
||
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
||
|
|
import importDefaultResult from "_createClass";
|
||
|
|
|
||
|
|
const ReactNativeDocument = 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);
|
||
|
|
}
|
||
|
|
let closure_0 = !callResult;
|
||
|
|
function _isNativeReflectConstruct() {
|
||
|
|
return closure_0;
|
||
|
|
}
|
||
|
|
return _isNativeReflectConstruct();
|
||
|
|
} catch (err) {
|
||
|
|
}
|
||
|
|
}
|
||
|
|
class ReactNativeDocument {
|
||
|
|
constructor(arg0, arg1) {
|
||
|
|
self = this;
|
||
|
|
tmp = _isNativeReflectConstruct(this, ReactNativeDocument);
|
||
|
|
items = [, ];
|
||
|
|
items[0] = arg1;
|
||
|
|
items[1] = null;
|
||
|
|
tmp2 = __esModule;
|
||
|
|
obj = __esModule(ReactNativeDocument);
|
||
|
|
tmp3 = __esModule;
|
||
|
|
if (_isNativeReflectConstruct()) {
|
||
|
|
tmp5 = globalThis;
|
||
|
|
_Reflect = Reflect;
|
||
|
|
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
|
||
|
|
} else {
|
||
|
|
constructResult = obj.apply(self, items);
|
||
|
|
}
|
||
|
|
tmp3Result = tmp3(self, constructResult);
|
||
|
|
tmp3Result._rootTag = global;
|
||
|
|
obj2 = require("ReactNativeDocumentElementInstanceHandleImpl");
|
||
|
|
reactNativeDocumentElementInstanceHandle = obj2.createReactNativeDocumentElementInstanceHandle();
|
||
|
|
tmp8 = new require("_isNativeReflectConstruct")(global, null, reactNativeDocumentElementInstanceHandle, tmp3Result);
|
||
|
|
obj3 = require("NativeDOMCxx");
|
||
|
|
linkRootNodeResult = obj3.linkRootNode(global, reactNativeDocumentElementInstanceHandle);
|
||
|
|
obj4 = require("ReactNativeDocumentElementInstanceHandleImpl");
|
||
|
|
result = obj4.setNativeElementReferenceForReactNativeDocumentElementInstanceHandle(reactNativeDocumentElementInstanceHandle, linkRootNodeResult);
|
||
|
|
obj5 = require("ReactNativeDocumentElementInstanceHandleImpl");
|
||
|
|
result1 = obj5.setPublicInstanceForReactNativeDocumentElementInstanceHandle(reactNativeDocumentElementInstanceHandle, tmp8);
|
||
|
|
tmp3Result._documentElement = tmp8;
|
||
|
|
return tmp3Result;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
require("_inherits")(ReactNativeDocument, require("_isNativeReflectConstruct"));
|
||
|
|
let items = [
|
||
|
|
{
|
||
|
|
key: "childElementCount",
|
||
|
|
get() {
|
||
|
|
return 1;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "children",
|
||
|
|
get() {
|
||
|
|
const items = [this.documentElement];
|
||
|
|
return ReactNativeDocument(129).createHTMLCollection(items);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "documentElement",
|
||
|
|
get() {
|
||
|
|
return this._documentElement;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "firstElementChild",
|
||
|
|
get() {
|
||
|
|
return this.documentElement;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "lastElementChild",
|
||
|
|
get() {
|
||
|
|
return this.documentElement;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "nodeName",
|
||
|
|
get() {
|
||
|
|
return "#document";
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "nodeType",
|
||
|
|
get() {
|
||
|
|
return importDefault(131).DOCUMENT_NODE;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "nodeValue",
|
||
|
|
get() {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "textContent",
|
||
|
|
get() {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: "getElementById",
|
||
|
|
value: function getElementById(c8, c8) {
|
||
|
|
const element = importDefault(139).getElementById(this._rootTag, c8);
|
||
|
|
if (null == element) {
|
||
|
|
return null;
|
||
|
|
} else {
|
||
|
|
const publicInstanceFromInstanceHandle = ReactNativeDocument(136).getPublicInstanceFromInstanceHandle(element);
|
||
|
|
let tmp6 = null;
|
||
|
|
if (publicInstanceFromInstanceHandle instanceof tmp(141)) {
|
||
|
|
tmp6 = publicInstanceFromInstanceHandle;
|
||
|
|
}
|
||
|
|
return tmp6;
|
||
|
|
}
|
||
|
|
const obj = importDefault(139);
|
||
|
|
tmp = importDefault;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
];
|
||
|
|
const importDefaultResultResult = importDefaultResult(ReactNativeDocument, items);
|
||
|
|
const error = importDefaultResultResult;
|
||
|
|
|
||
|
|
export default importDefaultResultResult;
|
||
|
|
export const createReactNativeDocument = function createReactNativeDocument(arg0) {
|
||
|
|
const obj = ReactNativeDocument(137);
|
||
|
|
return new closure_7(arg0, ReactNativeDocument(137).createReactNativeDocumentInstanceHandle(arg0));
|
||
|
|
};
|