203 lines
12 KiB
JavaScript
203 lines
12 KiB
JavaScript
/* Metro module 142; source: unknown; dependencies: [6, 7, 15, 17, 18, 139, 135, 138, 143, 145] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import GetBoundingClientRect from './module-00139-getBoundingClientRect.js'; /* Metro dependency 139 */
|
|
import Module00143 from './module-00143.js'; /* Metro dependency 143 */
|
|
import * as Module00135Module from './module-00135.js'; /* Metro dependency 135 */
|
|
import * as Module00145Module from './module-00145.js'; /* Metro dependency 145 */
|
|
|
|
function _fun2308(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:6, offset: 0x00c7d3e7, size: 197 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const noop_2312 = function() {
|
|
};
|
|
let value = GetBoundingClientRect;
|
|
value = _fun2315(value);
|
|
exports.default = ((a0) => {
|
|
var closure = _fun2314;
|
|
closure.prototype = a0.prototype;
|
|
return closure;
|
|
})(value);
|
|
function _isNativeReflectConstruct_2309() { // fn#2309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:148, offset: 0x00c7d4ac, 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_2309_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function replaceConstructorWithoutSuper({prototype}) { // fn#2313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:397, offset: 0x00c7d50a, size: 23 bytes, params: 2, frame: 2
|
|
const replaceConstructorWithoutSuperReactNativeElement2 = replaceConstructorWithoutSuperReactNativeElement;
|
|
replaceConstructorWithoutSuperReactNativeElement2.prototype = prototype;
|
|
return replaceConstructorWithoutSuperReactNativeElement2;
|
|
function replaceConstructorWithoutSuperReactNativeElement(a0, a1, a2, a3) { // fn#2314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:440, owner: replaceConstructorWithoutSuper.ReactNativeElement, offset: 0x00c7d521, size: 93 bytes, params: 5, frame: 18
|
|
const value = environment.__proto__;
|
|
(Module00135Module).setOwnerDocument(this, a3);
|
|
(Module00135Module).setInstanceHandle(this, a2);
|
|
this.__nativeTag = a0;
|
|
this.__internalInstanceHandle = a2;
|
|
this.__viewConfig = a1;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun2315(a0) { // fn#2315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:683, offset: 0x00c7d57e, size: 302 bytes, params: 2, frame: 16
|
|
const ReactNativeElement2 = ReactNativeElement;
|
|
Inherits(ReactNativeElement2, a0);
|
|
return CreateClass(ReactNativeElement2, [{key: 'offsetHeight', get: get_2317}, {key: 'offsetLeft', get: get_2318},
|
|
{key: 'offsetParent', get: get_2319}, {key: 'offsetTop', get: get_2320}, {key: 'offsetWidth', get: get_2321},
|
|
{key: 'blur', value: value_2322}, {key: 'focus', value: value_2323}, {key: 'measure', value: value_2324},
|
|
{key: 'measureInWindow', value: value_2325}, {key: 'measureLayout', value: value_2326}, {key: 'setNativeProps',
|
|
value: value_2327}]);
|
|
function ReactNativeElement(a0, a1, a2, a3) { // fn#2316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:695, offset: 0x00c7d6ac, size: 146 bytes, params: 5, frame: 20
|
|
let value = environment.__proto__;
|
|
env1_3(this, ReactNativeElement);
|
|
const items2 = [a2, a3];
|
|
const value3 = env1_6(ReactNativeElement);
|
|
value = env1_5(this, _isNativeReflectConstruct_2309() ? global.Reflect.construct(value3, items2,
|
|
env1_6(this).constructor) : value3.apply(this, items2));
|
|
value.__nativeTag = a0;
|
|
value.__internalInstanceHandle = a2;
|
|
value.__viewConfig = a1;
|
|
return value;
|
|
}
|
|
|
|
function get_2317() { // fn#2317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1078, offset: 0x00c7d73e, size: 74 bytes, params: 1, frame: 15
|
|
const Math = global.Math;
|
|
const round = Math.round;
|
|
let value = environment.__proto__;
|
|
value = require(139) /* metro dependency 139 */;
|
|
const getBoundingClientRect = value.getBoundingClientRect;
|
|
return Reflect.apply(round, Math, [Reflect.apply(getBoundingClientRect, value, [this,
|
|
{includeTransform: false}]).height]);
|
|
}
|
|
|
|
function get_2318() { // fn#2318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1201, offset: 0x00c7d788, size: 107 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__;
|
|
const nativeElementReference = (Module00135Module).getNativeElementReference(this);
|
|
if (nativeElementReference != null) {
|
|
value = importDefault(138) /* metro dependency 138 */;
|
|
value = value.getOffset(nativeElementReference);
|
|
return global.Math.round(value[2]);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
function get_2319() { // fn#2319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1360, offset: 0x00c7d7f3, size: 122 bytes, params: 1, frame: 16
|
|
const value = environment.__proto__;
|
|
const nativeElementReference = (require(135) /* metro dependency 135 */).getNativeElementReference(this);
|
|
if (nativeElementReference != null) {
|
|
var offset = (importDefault(138) /* metro dependency 138 */).getOffset(nativeElementReference);
|
|
if (offset[0] != null) {
|
|
return (require(135) /* metro dependency 135 */).getPublicInstanceFromInstanceHandle(offset[0]);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function get_2320() { // fn#2320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1576, offset: 0x00c7d86d, size: 107 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__;
|
|
const nativeElementReference = (Module00135Module).getNativeElementReference(this);
|
|
if (nativeElementReference != null) {
|
|
value = importDefault(138) /* metro dependency 138 */;
|
|
value = value.getOffset(nativeElementReference);
|
|
return global.Math.round(value[1]);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
function get_2321() { // fn#2321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1734, offset: 0x00c7d8d8, size: 74 bytes, params: 1, frame: 15
|
|
const Math = global.Math;
|
|
const round = Math.round;
|
|
let value = environment.__proto__;
|
|
value = require(139) /* metro dependency 139 */;
|
|
const getBoundingClientRect = value.getBoundingClientRect;
|
|
return Reflect.apply(round, Math, [Reflect.apply(getBoundingClientRect, value, [this,
|
|
{includeTransform: false}]).width]);
|
|
}
|
|
|
|
function value_2322() { // fn#2322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1852, offset: 0x00c7d922, size: 41 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
(Module00143).blurTextInput(this);
|
|
}
|
|
|
|
function value_2323() { // fn#2323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1917, offset: 0x00c7d94b, size: 41 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
(Module00143).focusTextInput(this);
|
|
}
|
|
|
|
function value_2324(a0) { // fn#2324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:1986, offset: 0x00c7d974, size: 82 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
const nativeElementReference = (Module00135Module).getNativeElementReference(this);
|
|
if (nativeElementReference != null) {
|
|
(importDefault(138) /* metro dependency 138 */).measure(nativeElementReference, a0);
|
|
}
|
|
}
|
|
|
|
function value_2325(a0) { // fn#2325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:2113, offset: 0x00c7d9c6, size: 82 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
const nativeElementReference = (Module00135Module).getNativeElementReference(this);
|
|
if (nativeElementReference != null) {
|
|
(importDefault(138) /* metro dependency 138 */).measureInWindow(nativeElementReference, a0);
|
|
}
|
|
}
|
|
|
|
function value_2326(a0, a1, a2) { // fn#2326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:2254, offset: 0x00c7da18, size: 166 bytes, params: 4, frame: 22
|
|
var value4;
|
|
var nativeElementReference;
|
|
var nativeElementReference2;
|
|
var defaultImport;
|
|
if (a0 instanceof ReactNativeElement) {
|
|
value4 = environment.__proto__;
|
|
nativeElementReference = (require(135) /* metro dependency 135 */).getNativeElementReference(this);
|
|
nativeElementReference2 = (require(135) /* metro dependency 135 */).getNativeElementReference(a0);
|
|
if (nativeElementReference != null && nativeElementReference2 != null) {
|
|
defaultImport = importDefault(138) /* metro dependency 138 */;
|
|
defaultImport.measureLayout(nativeElementReference, nativeElementReference2, a2 ?? noop_2312,
|
|
a1 ?? noop_2312);
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_2327(a0) { // fn#2327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:167:2505, offset: 0x00c7dabe, size: 127 bytes, params: 2, frame: 18
|
|
const value = environment.__proto__;
|
|
const value2 = Module00145Module.create(a0, this.__viewConfig.validAttributes);
|
|
const nativeElementReference = (Module00135Module).getNativeElementReference(this);
|
|
if (nativeElementReference != null && value2 != null) {
|
|
(importDefault(138) /* metro dependency 138 */).setNativeProps(nativeElementReference, value2);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun2308, 142, [6, 7, 15, 17, 18, 139, 135, 138, 143,
|
|
145]) /* metro module 142, dependencies: [6, 7, 15, 17, 18, 139, 135, 138, 143, 145] */;
|