68 lines
2.8 KiB
React
68 lines
2.8 KiB
React
/* Metro module 1337; source: unknown; dependencies: [1329, 1334, 1323] */
|
|
function _fun15255(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1464:6, offset: 0x00e2a2ca, size: 72 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.reflectionScalarDefault = undefined;
|
|
exports.reflectionScalarDefault = reflectionScalarDefault;
|
|
}
|
|
|
|
function reflectionScalarDefault(a0) { // fn#15256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1464:151, offset: 0x00e2a312, size: 577 bytes, params: 2, frame: 18
|
|
var value;
|
|
const LongType = (require(1329) /* metro dependency 1329 */).LongType;
|
|
var Uint8Array;
|
|
var uint8Array;
|
|
const PbLong = (require(1323) /* metro dependency 1323 */).PbLong;
|
|
const PbULong = (require(1323) /* metro dependency 1323 */).PbULong;
|
|
const r3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : LongType.STRING;
|
|
const ScalarType = (require(1329) /* metro dependency 1329 */).ScalarType;
|
|
const BOOL = ScalarType.BOOL;
|
|
if (BOOL === a0) {
|
|
return false;
|
|
}
|
|
const UINT64 = ScalarType.UINT64;
|
|
if (UINT64 === a0) {
|
|
value = require(1334) /* metro dependency 1334 */;
|
|
return value.reflectionLongConvert(PbULong.ZERO, r3);
|
|
}
|
|
const FIXED64 = ScalarType.FIXED64;
|
|
if (FIXED64 === a0) {
|
|
value = require(1334) /* metro dependency 1334 */;
|
|
return value.reflectionLongConvert(PbULong.ZERO, r3);
|
|
}
|
|
const INT64 = ScalarType.INT64;
|
|
if (INT64 === a0) {
|
|
value = require(1334) /* metro dependency 1334 */;
|
|
return value.reflectionLongConvert(PbLong.ZERO, r3);
|
|
}
|
|
const SFIXED64 = ScalarType.SFIXED64;
|
|
if (SFIXED64 === a0) {
|
|
value = require(1334) /* metro dependency 1334 */;
|
|
return value.reflectionLongConvert(PbLong.ZERO, r3);
|
|
}
|
|
const SINT64 = ScalarType.SINT64;
|
|
if (SINT64 === a0) {
|
|
value = require(1334) /* metro dependency 1334 */;
|
|
return value.reflectionLongConvert(PbLong.ZERO, r3);
|
|
}
|
|
const DOUBLE = ScalarType.DOUBLE;
|
|
if (DOUBLE !== a0) {
|
|
var FLOAT = ScalarType.FLOAT;
|
|
if (FLOAT === a0) {
|
|
return 0;
|
|
}
|
|
var BYTES = ScalarType.BYTES;
|
|
if (BYTES === a0) {
|
|
Uint8Array = global.Uint8Array;
|
|
value = Object.create(Uint8Array.prototype, {constructor: {value: Uint8Array}});
|
|
uint8Array = new Uint8Array(0);
|
|
return uint8Array instanceof Object ? uint8Array : value;
|
|
}
|
|
if (ScalarType.STRING === a0) {
|
|
return '';
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|