Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,16 @@
|
||||
/* Metro module 3862; source: design/utils/native.tsx; dependencies: [2, 3863, 3864, 3865, 3866] */
|
||||
function _fun31977(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4001:6, offset: 0x010090bd, size: 231 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/utils/native.tsx');
|
||||
const getNodeText = (require(3863) /* metro dependency 3863: getNodeText */).getNodeText;
|
||||
exports.getNodeText = getNodeText;
|
||||
exports.chainCallbacks = (require(3864) /* metro dependency 3864: mergePropsNative */).chainCallbacks;
|
||||
exports.mergeProps = (require(3864) /* metro dependency 3864: mergePropsNative */).mergeProps;
|
||||
exports.mergeRefs = (require(3864) /* metro dependency 3864: mergePropsNative */).mergeRefs;
|
||||
const useFocus = (require(3865) /* metro dependency 3865: useFocusNative */).useFocus;
|
||||
exports.useFocus = useFocus;
|
||||
exports.isThemeLight = (require(3866) /* metro dependency 3866: themes */).isThemeLight;
|
||||
exports.isThemeDark = (require(3866) /* metro dependency 3866: themes */).isThemeDark;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
/* Metro module 3864; source: design/utils/native/mergeProps.native.tsx; dependencies: [2] */
|
||||
function _fun31980(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4003:6, offset: 0x0100928a, size: 111 bytes, params: 8, frame: 17
|
||||
const closure = function(a0) {
|
||||
var r1;
|
||||
var env0_0 = copyRestArgs(0, r1);
|
||||
return _fun31982;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/utils/native/mergeProps.native.tsx');
|
||||
exports.chainCallbacks = closure;
|
||||
exports.mergeRefs = function(a0) {
|
||||
var r4;
|
||||
var value = copyRestArgs(0, r4);
|
||||
var env0_0 = value;
|
||||
return value.length === 1 ? value[0] : _fun31984;
|
||||
};
|
||||
exports.mergeProps = mergeProps;
|
||||
}
|
||||
|
||||
function chainCallbacks(a0) { // fn#31981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4003:46, offset: 0x010092f9, size: 19 bytes, params: 2, frame: 10
|
||||
const env0_0 = copyRestArgs(0, undefined);
|
||||
return _fun31982;
|
||||
}
|
||||
|
||||
function mergeRefs(a0) { // fn#31983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4003:334, offset: 0x01009364, size: 39 bytes, params: 2, frame: 13
|
||||
const value = copyRestArgs(0, undefined);
|
||||
return value.length === 1 ? value[0] : _fun31984;
|
||||
}
|
||||
|
||||
function mergeProps(a0) { // fn#31985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4003:496, offset: 0x010093d5, size: 295 bytes, params: 2, frame: 40
|
||||
var r5;
|
||||
var r22;
|
||||
var r29;
|
||||
var property;
|
||||
var properties;
|
||||
var properties2;
|
||||
var properties3;
|
||||
var propertyName;
|
||||
var propertyName2;
|
||||
var property2;
|
||||
var property3;
|
||||
var charCodeAt;
|
||||
var concat;
|
||||
var value4;
|
||||
var value5;
|
||||
const value = copyRestArgs(0, undefined);
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, value[0], undefined);
|
||||
let length = value.length;
|
||||
const value2 = 1;
|
||||
if (value2 < length) {
|
||||
r5 = value2;
|
||||
reducibleLoop1: while (true) {
|
||||
property = value[r5];
|
||||
properties = Object.keys(property);
|
||||
properties2 = 0;
|
||||
properties3 = properties.length;
|
||||
if (properties !== undefined) {
|
||||
r22 = properties2;
|
||||
reducibleLoop2: while (true) {
|
||||
propertyName = properties[r22];
|
||||
propertyName2 = r22 + 1;
|
||||
if (propertyName === undefined) {
|
||||
break reducibleLoop2;
|
||||
}
|
||||
property2 = object2[propertyName];
|
||||
property3 = property[propertyName];
|
||||
if (typeof property2 === 'function') {
|
||||
reducibleJoin9: while (true) {
|
||||
if (typeof property3 !== 'function') {
|
||||
break reducibleJoin9;
|
||||
}
|
||||
if (propertyName[0] !== 'o') {
|
||||
break reducibleJoin9;
|
||||
}
|
||||
if (propertyName[value2] !== 'n') {
|
||||
break reducibleJoin9;
|
||||
}
|
||||
charCodeAt = propertyName.charCodeAt;
|
||||
if (Reflect.apply(charCodeAt, propertyName, [2]) >= 65) {
|
||||
charCodeAt = propertyName.charCodeAt;
|
||||
if (Reflect.apply(charCodeAt, propertyName, [2]) <= 90) {
|
||||
object2[propertyName] = chainCallbacks(property2, property3);
|
||||
r22 = propertyName2;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
break reducibleJoin9;
|
||||
}
|
||||
break reducibleJoin9;
|
||||
}
|
||||
}
|
||||
if (propertyName === 'style') {
|
||||
concat = property2.concat;
|
||||
value4 = Reflect.apply(concat, property2, [property3]);
|
||||
r29 = value4;
|
||||
} else {
|
||||
r29 = property3 === undefined ? property2 : property3;
|
||||
}
|
||||
object2[propertyName] = r29;
|
||||
r22 = propertyName2;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
}
|
||||
value5 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
||||
length = value.length;
|
||||
if (value5 < length) {
|
||||
r5 = value5;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
break reducibleLoop1;
|
||||
}
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun31982(a0) { // fn#31982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4003:82, offset: 0x0100930c, size: 88 bytes, params: 2, frame: 19
|
||||
var r8;
|
||||
var r2;
|
||||
var property;
|
||||
var items2;
|
||||
var value4;
|
||||
var value5;
|
||||
const value = 0;
|
||||
const value2 = copyRestArgs(value, undefined);
|
||||
const binding = env0_0;
|
||||
let length = binding.length;
|
||||
if (value < length) {
|
||||
r2 = value;
|
||||
while (true) {
|
||||
property = binding[r2];
|
||||
if (typeof property === 'function') {
|
||||
items2 = [];
|
||||
value4 = arraySpread(items2, value2, value, r8);
|
||||
apply(property, items2, undefined, value4);
|
||||
r8 = value4;
|
||||
}
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
length = binding.length;
|
||||
if (value5 < length) {
|
||||
r2 = value5;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun31984(a0) { // fn#31984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4003:384, offset: 0x0100938b, size: 74 bytes, params: 2, frame: 16
|
||||
var r4;
|
||||
var property;
|
||||
const binding = env0_0;
|
||||
let length = binding.length;
|
||||
let value = 0;
|
||||
if (value < length) {
|
||||
r4 = value;
|
||||
while (true) {
|
||||
property = binding[r4];
|
||||
if (typeof property !== 'function') {
|
||||
if (property == null) {
|
||||
break;
|
||||
}
|
||||
property.current = a0;
|
||||
break;
|
||||
}
|
||||
property(a0);
|
||||
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
||||
length = binding.length;
|
||||
if (value < length) {
|
||||
r4 = value;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 3865; source: design/utils/native/useFocus.native.tsx; dependencies: [57, 31, 2] */
|
||||
function _fun31986(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4004:6, offset: 0x010094fc, size: 123 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_1 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/utils/native/useFocus.native.tsx');
|
||||
exports.useFocus = useFocus;
|
||||
}
|
||||
|
||||
function useFocus() { // fn#31987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4004:200, offset: 0x01009577, size: 87 bytes, params: 1, frame: 15
|
||||
const binding = env0_1;
|
||||
const value = env0_0(binding.useState(false), 2);
|
||||
const property = value[0];
|
||||
var env0_0 = value[1];
|
||||
const object2 = {};
|
||||
object2.focusProps = binding.useMemo(function() {
|
||||
return {onFocus: _fun31989, onBlur: _fun31990};
|
||||
}, []);
|
||||
object2.isFocused = property;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun31988() { // fn#31988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4004:293, offset: 0x010095ce, size: 26 bytes, params: 1, frame: 3
|
||||
return {onFocus: onFocus_31989, onBlur: onBlur_31990};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 3863; source: design/utils/shared/getNodeText.tsx; dependencies: [31, 2] */
|
||||
function _fun31978(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4002:6, offset: 0x010091a4, size: 108 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/utils/shared/getNodeText.tsx');
|
||||
exports.getNodeText = getNodeText;
|
||||
}
|
||||
|
||||
function getNodeText(a0) { // fn#31979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4002:189, offset: 0x01009210, size: 122 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var r0;
|
||||
let value = a0;
|
||||
const value2 = typeof value;
|
||||
if (value2 === 'string') {
|
||||
r0 = value;
|
||||
} else if (value2 === 'number') {
|
||||
r0 = value;
|
||||
} else {
|
||||
if (value instanceof global.Array) {
|
||||
value = value.map(getNodeText);
|
||||
value = value.join('');
|
||||
r1 = value;
|
||||
} else if (env0_0.isValidElement(value)) {
|
||||
value = getNodeText(value.props.children);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = undefined;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 3866; source: design/utils/shared/themes.tsx; dependencies: [482, 2] */
|
||||
function _fun31991(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4005:6, offset: 0x0100960c, size: 118 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/utils/shared/themes.tsx');
|
||||
exports.isThemeLight = function(a0) {
|
||||
return a0 === ThemeTypes.LIGHT;
|
||||
};
|
||||
exports.isThemeDark = function(a0) {
|
||||
if (ThemeTypes.DARK === a0) {
|
||||
return true;
|
||||
}
|
||||
if (ThemeTypes.MIDNIGHT === a0) {
|
||||
return true;
|
||||
}
|
||||
if (ThemeTypes.DARKER === a0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user