Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,303 @@
|
||||
/* Metro module 368; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 39, 40, 347, 348, 357] */
|
||||
function _fun5457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:6, offset: 0x00cdc28b, size: 235 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const isRgbaValue = function(a0) {
|
||||
var r0;
|
||||
var value = a0;
|
||||
r0 = value && typeof value.r === 'number' && typeof value.g === 'number';
|
||||
r0 = r0 && typeof value.b === 'number' && typeof value.a === 'number';
|
||||
return r0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(102) /* metro dependency 102 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_9 = {'r': 0, 'g': 0, 'b': 0, 'a': 1};
|
||||
exports.default = _fun5465(importDefault(357) /* metro dependency 357 */);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_5458() { // fn#5458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:161, offset: 0x00cdc376, 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_5458_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _superPropGet_5461(a0, a1, a2, a3) { // fn#5461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:380, offset: 0x00cdc3d4, size: 99 bytes, params: 5, frame: 18
|
||||
let value = a0;
|
||||
const env0_0 = a2;
|
||||
const binding = env0_7;
|
||||
value = env0_6(1 & 3 ? value.prototype : value);
|
||||
value = binding(value, a1, a2);
|
||||
return 2 & 3 ? typeof value !== 'function' ? value : _fun5462 : value;
|
||||
}
|
||||
|
||||
function processColor_5463(a0) { // fn#5463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:538, offset: 0x00cdc437, size: 218 bytes, params: 2, frame: 16
|
||||
if (a0 == null) {
|
||||
return null;
|
||||
}
|
||||
var value;
|
||||
if (isRgbaValue(a0)) {
|
||||
return a0;
|
||||
}
|
||||
const value2 = (importDefault(39) /* metro dependency 39 */)(a0);
|
||||
if (value2 == null) {
|
||||
return null;
|
||||
}
|
||||
const value3 = typeof value2;
|
||||
if (value3 === 'object') {
|
||||
value = require(40) /* metro dependency 40 */;
|
||||
value = value.processColorObject(value2);
|
||||
return value ?? null;
|
||||
}
|
||||
if (value3 !== 'number') {
|
||||
return null;
|
||||
}
|
||||
return {r: (4278190080 & value2) >>> 24, g: (16711680 & value2) >>> 16, b: (65280 & value2) >>> 8,
|
||||
a: (255 & value2) / 255};
|
||||
}
|
||||
|
||||
function _fun5465(a0) { // fn#5465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:980, offset: 0x00cdc566, size: 344 bytes, params: 2, frame: 16
|
||||
const closure = AnimatedColor;
|
||||
env0_8(closure, a0);
|
||||
return env0_4(closure, [{key: 'setValue', value: value_5467}, {key: 'setOffset', value: function(a0) {
|
||||
this.r.setOffset(a0.r);
|
||||
this.g.setOffset(a0.g);
|
||||
this.b.setOffset(a0.b);
|
||||
this.a.setOffset(a0.a);
|
||||
}}, {key: 'flattenOffset', value: function() {
|
||||
this.r.flattenOffset();
|
||||
this.g.flattenOffset();
|
||||
this.b.flattenOffset();
|
||||
this.a.flattenOffset();
|
||||
}}, {key: 'extractOffset', value: function() {
|
||||
this.r.extractOffset();
|
||||
this.g.extractOffset();
|
||||
this.b.extractOffset();
|
||||
this.a.extractOffset();
|
||||
}}, {key: 'stopAnimation', value: function(a0) {
|
||||
this.r.stopAnimation();
|
||||
this.g.stopAnimation();
|
||||
this.b.stopAnimation();
|
||||
this.a.stopAnimation();
|
||||
if (a0) {
|
||||
a0(this.__getValue());
|
||||
}
|
||||
}}, {key: 'resetAnimation', value: function(a0) {
|
||||
this.r.resetAnimation();
|
||||
this.g.resetAnimation();
|
||||
this.b.resetAnimation();
|
||||
this.a.resetAnimation();
|
||||
if (a0) {
|
||||
a0(this.__getValue());
|
||||
}
|
||||
}}, {key: '__getValue', value: value_5474}, {key: '__attach', value: value_5475}, {key: '__detach',
|
||||
value: value_5476}, {key: '_withSuspendedCallbacks', value: function(a0) {
|
||||
var _suspendCallbacks = this._suspendCallbacks;
|
||||
this._suspendCallbacks = typeof _suspendCallbacks === 'bigint' ? _suspendCallbacks + 1n : +_suspendCallbacks + 1;
|
||||
a0();
|
||||
_suspendCallbacks = this._suspendCallbacks;
|
||||
this._suspendCallbacks = typeof _suspendCallbacks === 'bigint' ? _suspendCallbacks - 1n : +_suspendCallbacks - 1;
|
||||
}}, {key: '__callListeners', value: value_5478}, {key: '__makeNative', value: value_5479},
|
||||
{key: '__getNativeConfig', value: function() {
|
||||
var object = {type: 'color'};
|
||||
object.r = this.r.__getNativeTag();
|
||||
object.g = this.g.__getNativeTag();
|
||||
object.b = this.b.__getNativeTag();
|
||||
object.a = this.a.__getNativeTag();
|
||||
object.nativeColor = this.nativeColor;
|
||||
object.debugID = this.__getDebugID();
|
||||
return object;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function AnimatedColor(a0, a1) { // fn#5466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:992, offset: 0x00cdc6be, size: 567 bytes, params: 3, frame: 22
|
||||
var r;
|
||||
var g;
|
||||
var b;
|
||||
var a;
|
||||
var prototype;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
let value = a0;
|
||||
env1_3(this, AnimatedColor);
|
||||
const items2 = [a1];
|
||||
const value4 = env1_6(AnimatedColor);
|
||||
const value7 = env1_5(this, _isNativeReflectConstruct_5458() ? global.Reflect.construct(value4, items2,
|
||||
env1_6(this).constructor) : value4.apply(this, items2));
|
||||
value7._suspendCallbacks = 0;
|
||||
const r3 = value ?? env1_9;
|
||||
let r4 = r3 && r3.r instanceof (importDefault(347) /* metro dependency 347 */) && r3.g instanceof (importDefault(347) /* metro dependency 347 */);
|
||||
r4 = r4 && r3.b instanceof (importDefault(347) /* metro dependency 347 */) && r3.a instanceof (importDefault(347) /* metro dependency 347 */);
|
||||
if (r4) {
|
||||
value7.r = r3.r;
|
||||
value7.g = r3.g;
|
||||
value7.b = r3.b;
|
||||
value7.a = r3.a;
|
||||
} else {
|
||||
value = processColor_5463(r3);
|
||||
r4 = value ?? env1_9;
|
||||
if (!isRgbaValue(r4)) {
|
||||
value7.nativeColor = r4;
|
||||
r4 = env1_9;
|
||||
}
|
||||
value = importDefault(347) /* metro dependency 347 */;
|
||||
r = r4.r;
|
||||
prototype = value.prototype;
|
||||
value8 = Object.create(prototype, {constructor: {value: value}});
|
||||
value = new value();
|
||||
value = value instanceof Object ? value : value8;
|
||||
value7.r = value;
|
||||
value = importDefault(347) /* metro dependency 347 */;
|
||||
g = r4.g;
|
||||
prototype = value.prototype;
|
||||
value9 = Object.create(prototype, {constructor: {value: value}});
|
||||
value = new value();
|
||||
value = value instanceof Object ? value : value9;
|
||||
value7.g = value;
|
||||
value = importDefault(347) /* metro dependency 347 */;
|
||||
b = r4.b;
|
||||
prototype = value.prototype;
|
||||
value10 = Object.create(prototype, {constructor: {value: value}});
|
||||
value = new value();
|
||||
value = value instanceof Object ? value : value10;
|
||||
value7.b = value;
|
||||
value = importDefault(347) /* metro dependency 347 */;
|
||||
a = r4.a;
|
||||
prototype = value.prototype;
|
||||
value11 = Object.create(prototype, {constructor: {value: value}});
|
||||
value = new value();
|
||||
value = value instanceof Object ? value : value11;
|
||||
value7.a = value;
|
||||
}
|
||||
if (a1 != null && a1.useNativeDriver) {
|
||||
value7.__makeNative();
|
||||
}
|
||||
return value7;
|
||||
}
|
||||
|
||||
function value_5467(a0) { // fn#5467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:1720, offset: 0x00cdc8f5, size: 308 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
var value;
|
||||
var value2;
|
||||
var API;
|
||||
var value4;
|
||||
const env0_1 = false;
|
||||
if (this.__isNative) {
|
||||
value = this.__getNativeTag();
|
||||
value2 = environment.__proto__;
|
||||
API = (importDefault(348) /* metro dependency 348 */).API;
|
||||
API.setWaitingForIdentifier(value.toString());
|
||||
}
|
||||
value = environment.__proto__;
|
||||
const env0_2 = processColor_5463(a0) ?? env1_9;
|
||||
this._withSuspendedCallbacks(_fun5468);
|
||||
if (this.__isNative) {
|
||||
value4 = this.__getNativeTag();
|
||||
if (env0_1) {
|
||||
API = (importDefault(348) /* metro dependency 348 */).API;
|
||||
API.updateAnimatedNodeConfig(value4, this.__getNativeConfig());
|
||||
}
|
||||
API = (importDefault(348) /* metro dependency 348 */).API;
|
||||
API.unsetWaitingForIdentifier(value4.toString());
|
||||
} else {
|
||||
(require(347) /* metro dependency 347 */).flushValue(this);
|
||||
}
|
||||
this.__callListeners(this.__getValue());
|
||||
}
|
||||
|
||||
function value_5474() { // fn#5474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:3179, offset: 0x00cdcc7a, size: 130 bytes, params: 1, frame: 24
|
||||
var r0;
|
||||
var value;
|
||||
if (this.nativeColor != null) {
|
||||
r0 = this.nativeColor;
|
||||
} else {
|
||||
value = this.r.__getValue();
|
||||
value = 'rgba(' + value + ', ' + this.g.__getValue() + ', ' + this.b.__getValue() + ', ' + this.a.__getValue() + ')';
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_5475() { // fn#5475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:3375, offset: 0x00cdccfc, size: 111 bytes, params: 1, frame: 17
|
||||
this.r.__addChild(this);
|
||||
this.g.__addChild(this);
|
||||
this.b.__addChild(this);
|
||||
this.a.__addChild(this);
|
||||
const value = environment.__proto__;
|
||||
_superPropGet_5461(AnimatedColor, '__attach', this, 3)([]);
|
||||
}
|
||||
|
||||
function value_5476() { // fn#5476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:3566, offset: 0x00cdcd6b, size: 111 bytes, params: 1, frame: 17
|
||||
this.r.__removeChild(this);
|
||||
this.g.__removeChild(this);
|
||||
this.b.__removeChild(this);
|
||||
this.a.__removeChild(this);
|
||||
const value = environment.__proto__;
|
||||
_superPropGet_5461(AnimatedColor, '__detach', this, 3)([]);
|
||||
}
|
||||
|
||||
function value_5478(a0) { // fn#5478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:3905, offset: 0x00cdce06, size: 67 bytes, params: 2, frame: 17
|
||||
var value;
|
||||
if (this._suspendCallbacks === 0) {
|
||||
value = environment.__proto__;
|
||||
value = _superPropGet_5461(AnimatedColor, '__callListeners', this, 3);
|
||||
value([a0]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_5479(a0) { // fn#5479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:4048, offset: 0x00cdce49, size: 118 bytes, params: 2, frame: 18
|
||||
this.r.__makeNative(a0);
|
||||
this.g.__makeNative(a0);
|
||||
this.b.__makeNative(a0);
|
||||
this.a.__makeNative(a0);
|
||||
const value = environment.__proto__;
|
||||
_superPropGet_5461(AnimatedColor, '__makeNative', this, 3)([a0]);
|
||||
}
|
||||
|
||||
function _fun5468() { // fn#5468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:409:1926, offset: 0x00cdca29, size: 179 bytes, params: 1, frame: 15
|
||||
const isRgbaValue2 = isRgbaValue(env0_2);
|
||||
const binding = env0_2;
|
||||
const binding2 = env0_0;
|
||||
if (isRgbaValue2) {
|
||||
binding2.r.setValue(binding.r);
|
||||
binding2.g.setValue(binding.g);
|
||||
binding2.b.setValue(binding.b);
|
||||
binding2.a.setValue(binding.a);
|
||||
if (binding2.nativeColor != null) {
|
||||
env0_0.nativeColor = null;
|
||||
}
|
||||
} else if (binding2.nativeColor !== binding) {
|
||||
env0_0.nativeColor = binding;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user