168 lines
5.8 KiB
React
168 lines
5.8 KiB
React
/* Metro module 1329; source: unknown; dependencies: [1330] */
|
|
function _fun15196(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1456:6, offset: 0x00e26009, size: 546 bytes, params: 8, frame: 19
|
|
var r8;
|
|
var r4;
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
let object2 = {value: true};
|
|
Object.defineProperty(exports, '__esModule', object2);
|
|
exports.ScalarType = undefined;
|
|
exports.LongType = undefined;
|
|
exports.RepeatType = undefined;
|
|
exports.normalizeFieldInfo = undefined;
|
|
exports.readFieldOptions = undefined;
|
|
exports.readFieldOption = undefined;
|
|
exports.readMessageOption = undefined;
|
|
const ScalarType = exports.ScalarType;
|
|
if (ScalarType) {
|
|
r8 = ScalarType;
|
|
} else {
|
|
object2 = {};
|
|
exports.ScalarType = object2;
|
|
r8 = object2;
|
|
}
|
|
r8.DOUBLE = 1;
|
|
r8[1] = 'DOUBLE';
|
|
r8.FLOAT = 2;
|
|
r8[2] = 'FLOAT';
|
|
r8.INT64 = 3;
|
|
r8[3] = 'INT64';
|
|
r8.UINT64 = 4;
|
|
r8[4] = 'UINT64';
|
|
r8.INT32 = 5;
|
|
r8[5] = 'INT32';
|
|
r8.FIXED64 = 6;
|
|
r8[6] = 'FIXED64';
|
|
r8.FIXED32 = 7;
|
|
r8[7] = 'FIXED32';
|
|
r8.BOOL = 8;
|
|
r8[8] = 'BOOL';
|
|
r8.STRING = 9;
|
|
r8[9] = 'STRING';
|
|
r8.BYTES = 12;
|
|
r8[12] = 'BYTES';
|
|
r8.UINT32 = 13;
|
|
r8[13] = 'UINT32';
|
|
r8.SFIXED32 = 15;
|
|
r8[15] = 'SFIXED32';
|
|
r8.SFIXED64 = 16;
|
|
r8[16] = 'SFIXED64';
|
|
r8.SINT32 = 17;
|
|
r8[17] = 'SINT32';
|
|
r8.SINT64 = 18;
|
|
r8[18] = 'SINT64';
|
|
const LongType = exports.LongType;
|
|
if (LongType) {
|
|
r4 = LongType;
|
|
} else {
|
|
object2 = {};
|
|
exports.LongType = object2;
|
|
r4 = object2;
|
|
}
|
|
r4.BIGINT = 0;
|
|
r4[0] = 'BIGINT';
|
|
r4.STRING = 1;
|
|
r4[1] = 'STRING';
|
|
r4.NUMBER = 2;
|
|
r4[2] = 'NUMBER';
|
|
const RepeatType = exports.RepeatType;
|
|
if (RepeatType) {
|
|
r4 = RepeatType;
|
|
} else {
|
|
object2 = {};
|
|
exports.RepeatType = object2;
|
|
r4 = object2;
|
|
}
|
|
r4.NO = 0;
|
|
r4[0] = 'NO';
|
|
r4.PACKED = 1;
|
|
r4[1] = 'PACKED';
|
|
r4.UNPACKED = 2;
|
|
r4[2] = 'UNPACKED';
|
|
exports.normalizeFieldInfo = normalizeFieldInfo;
|
|
exports.readFieldOptions = function(a0, a1, a2, a3) {
|
|
var r1;
|
|
var env0_0 = a1;
|
|
var value = a0.fields.find(_fun15199);
|
|
var value2 = undefined;
|
|
r1 = value === null || value2 === value ? value2 : value.options;
|
|
return r1 && r1[a2] ? a3.fromJson(r1[a2]) : value2;
|
|
};
|
|
exports.readFieldOption = function(a0, a1, a2, a3) {
|
|
var r2;
|
|
var env0_0 = a1;
|
|
var property = a0.fields;
|
|
var value = property.find(_fun15201);
|
|
var value2 = undefined;
|
|
r2 = value === null || value2 === value ? value2 : value.options;
|
|
if (r2) {
|
|
property = r2[a2];
|
|
return value2 === property ? property : a3 ? a3.fromJson(property) : property;
|
|
}
|
|
return value2;
|
|
};
|
|
exports.readMessageOption = function(a0, a1, a2) {
|
|
var property = a0.options[a1];
|
|
return property === undefined ? property : a2 ? a2.fromJson(property) : property;
|
|
};
|
|
}
|
|
|
|
function normalizeFieldInfo(a0) { // fn#15197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1456:864, offset: 0x00e2622b, size: 231 bytes, params: 2, frame: 14
|
|
var r1;
|
|
var value;
|
|
const localName = a0.localName;
|
|
if (localName === null) {
|
|
value = require(1330) /* metro dependency 1330 */;
|
|
value = value.lowerCamelCase(a0.name);
|
|
r1 = value;
|
|
} else if (localName !== undefined) {
|
|
r1 = localName;
|
|
} else {
|
|
value = require(1330) /* metro dependency 1330 */;
|
|
value = value.lowerCamelCase(a0.name);
|
|
r1 = value;
|
|
}
|
|
a0.localName = r1;
|
|
const jsonName = a0.jsonName;
|
|
if (jsonName === null) {
|
|
value = require(1330) /* metro dependency 1330 */;
|
|
value = value.lowerCamelCase(a0.name);
|
|
r1 = value;
|
|
} else if (jsonName !== undefined) {
|
|
r1 = jsonName;
|
|
} else {
|
|
value = require(1330) /* metro dependency 1330 */;
|
|
value = value.lowerCamelCase(a0.name);
|
|
r1 = value;
|
|
}
|
|
a0.jsonName = r1;
|
|
const repeat = a0.repeat;
|
|
a0.repeat = repeat === null ? env0_2.NO : repeat !== undefined ? repeat : env0_2.NO;
|
|
const opt = a0.opt;
|
|
a0.opt = opt === null ? !a0.repeat && (!a0.oneof && a0.kind == 'message') : opt !== undefined ? opt : !a0.repeat && (!a0.oneof && a0.kind == 'message');
|
|
return a0;
|
|
}
|
|
|
|
function readFieldOptions({fields}, a1, a2, a3) { // fn#15198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1456:1220, offset: 0x00e26312, size: 92 bytes, params: 5, frame: 14
|
|
const env0_0 = a1;
|
|
const value = fields.find(_fun15199);
|
|
const options = value === null || value === undefined ? undefined : value.options;
|
|
return options && options[a2] ? a3.fromJson(options[a2]) : undefined;
|
|
}
|
|
|
|
function readFieldOption({fields}, a1, a2, a3) { // fn#15200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1456:1421, offset: 0x00e26392, size: 99 bytes, params: 5, frame: 13
|
|
var property;
|
|
const env0_0 = a1;
|
|
const value = fields.find(_fun15201);
|
|
const options = value === null || value === undefined ? undefined : value.options;
|
|
if (options) {
|
|
property = options[a2];
|
|
return property === undefined ? property : a3 ? a3.fromJson(property) : property;
|
|
}
|
|
}
|
|
|
|
function _fun15199({localName}, a1) { // fn#15199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1456:1288, offset: 0x00e2636e, size: 36 bytes, params: 3, frame: 3
|
|
return localName == require || a1 == require;
|
|
}
|
|
|