Files
discord-decomp/sources/by-id/module-00128.jsx
T
2026-07-27 16:20:00 +03:00

122 lines
6.7 KiB
React

/* Metro module 128; source: unknown; dependencies: [6, 7, 99, 100, 129] */
function _fun2128(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:6, offset: 0x00c7a258, size: 225 bytes, params: 8, frame: 18
const castToNumber = function(a0) {
return a0 ? (0, global.Number)(a0) : 0;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(99) /* metro dependency 99 */;
let value = importDefault(100) /* metro dependency 100 */;
const env0_3 = value('x');
const env0_4 = value('y');
const env0_5 = value('width');
const env0_6 = value('height');
value = _fun2130();
const value2 = require(129) /* metro dependency 129 */;
value2.setPlatformObject(value, {clone: clone_2150});
exports.default = value;
}
function _fun2130() { // fn#2130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:233, offset: 0x00c7a352, size: 453 bytes, params: 1, frame: 16
return env0_1(DOMRectReadOnly, [{key: 'x', get: get_2132}, {key: 'y', get: get_2133}, {key: 'width', get: get_2134},
{key: 'height', get: get_2135}, {key: 'top', get: get_2136}, {key: 'right', get: get_2137}, {key: 'bottom',
get: get_2138}, {key: 'left', get: get_2139}, {key: 'toJSON', value: function() {
return {x: this.x, y: this.y, width: this.width, height: this.height, top: this.top, left: this.left,
bottom: this.bottom, right: this.right};
}}, {key: '__getInternalX', value: value_2141}, {key: '__getInternalY', value: value_2142},
{key: '__getInternalWidth', value: value_2143}, {key: '__getInternalHeight', value: value_2144},
{key: '__setInternalX', value: value_2145}, {key: '__setInternalY', value: value_2146},
{key: '__setInternalWidth', value: value_2147}, {key: '__setInternalHeight', value: value_2148}],
[{key: 'fromRect', value: value_2149}]);
}
function clone_2150({x, y, width, height}) { // fn#2150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:2216, offset: 0x00c7a82d, size: 52 bytes, params: 2, frame: 17
const binding = env0_7;
const value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding2 = new binding(x, y, width, height);
return binding2 instanceof Object ? binding2 : value;
}
function DOMRectReadOnly(a0, a1, a2, a3) { // fn#2131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:244, offset: 0x00c7a517, size: 219 bytes, params: 5, frame: 20
env1_0(this, DOMRectReadOnly);
let Object = global.Object;
Object.defineProperty(this, env1_3, {writable: true, value: undefined});
Object = global.Object;
Object.defineProperty(this, env1_4, {writable: true, value: undefined});
Object = global.Object;
Object.defineProperty(this, env1_5, {writable: true, value: undefined});
Object = global.Object;
Object.defineProperty(this, env1_6, {writable: true, value: undefined});
this.__setInternalX(a0);
this.__setInternalY(a1);
this.__setInternalWidth(a2);
this.__setInternalHeight(a3);
}
function get_2136() { // fn#2136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:881, offset: 0x00c7a662, size: 55 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
const binding2 = env1_6;
const property = binding(this, binding2)[binding2];
const binding3 = env1_4;
const property2 = binding(this, binding3)[binding3];
return property < 0 ? property2 + property : property2;
}
function get_2137() { // fn#2137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:966, offset: 0x00c7a699, size: 55 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
const binding2 = env1_5;
const property = binding(this, binding2)[binding2];
const binding3 = env1_3;
const property2 = binding(this, binding3)[binding3];
return property < 0 ? property2 : property2 + property;
}
function get_2138() { // fn#2138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:1052, offset: 0x00c7a6d0, size: 55 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
const binding2 = env1_6;
const property = binding(this, binding2)[binding2];
const binding3 = env1_4;
const property2 = binding(this, binding3)[binding3];
return property < 0 ? property2 : property2 + property;
}
function get_2139() { // fn#2139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:1136, offset: 0x00c7a707, size: 55 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
const binding2 = env1_5;
const property = binding(this, binding2)[binding2];
const binding3 = env1_3;
const property2 = binding(this, binding3)[binding3];
return property < 0 ? property2 + property : property2;
}
function value_2145(a0) { // fn#2145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:1720, offset: 0x00c7a78d, size: 40 bytes, params: 2, frame: 14
const binding = env1_2;
const binding2 = env1_3;
binding(this, binding2)[binding2] = castToNumber(a0);
}
function value_2146(a0) { // fn#2146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:1806, offset: 0x00c7a7b5, size: 40 bytes, params: 2, frame: 14
const binding = env1_2;
const binding2 = env1_4;
binding(this, binding2)[binding2] = castToNumber(a0);
}
function value_2147(a0) { // fn#2147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:1896, offset: 0x00c7a7dd, size: 40 bytes, params: 2, frame: 14
const binding = env1_2;
const binding2 = env1_5;
binding(this, binding2)[binding2] = castToNumber(a0);
}
function value_2148(a0) { // fn#2148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:153:1991, offset: 0x00c7a805, size: 40 bytes, params: 2, frame: 14
const binding = env1_2;
const binding2 = env1_6;
binding(this, binding2)[binding2] = castToNumber(a0);
}