57 lines
2.7 KiB
TypeScript
57 lines
2.7 KiB
TypeScript
/* Metro module 1363; source: modules/user_settings/UserSettingsProtoUtils.tsx; dependencies: [1350, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun15662(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1490:6, offset: 0x00e3895b, size: 105 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/UserSettingsProtoUtils.tsx');
|
|
exports.getProtoFieldClass = function(a0, a1) {
|
|
var env0_0 = a1;
|
|
var value = a0.fields.find(_fun15664);
|
|
if (value == null) {
|
|
throw global.Error('Unknown proto field name ' + (0, global.String)(a1));
|
|
}
|
|
return value.T();
|
|
};
|
|
exports.createModifiedProto = createModifiedProto;
|
|
function getProtoFieldClass({fields}, a1) { // fn#15663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1490:195, offset: 0x00e389c4, size: 101 bytes, params: 3, frame: 13
|
|
const env0_0 = a1;
|
|
const value = fields.find(function({localName}) {
|
|
return localName === require;
|
|
});
|
|
if (value == null) {
|
|
throw global.Error('Unknown proto field name ' + global.String(a1));
|
|
}
|
|
return value.T();
|
|
function _fun15664({localName}) { // fn#15664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1490:249, offset: 0x00e38a29, size: 22 bytes, params: 2, frame: 2
|
|
return localName === require;
|
|
}
|
|
|
|
}
|
|
|
|
function createModifiedProto(a0, a1, a2, a3, a4) { // fn#15665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1490:370, offset: 0x00e38a3f, size: 115 bytes, params: 6, frame: 18
|
|
var r3;
|
|
var value;
|
|
var fromBinary;
|
|
if (a0 != null) {
|
|
fromBinary = a2.fromBinary;
|
|
value = a2.toBinary(a0);
|
|
value = Reflect.apply(fromBinary, a2, [value,
|
|
(require(1350) /* metro dependency 1350: UserSettingsUtils */).BINARY_READ_OPTIONS]);
|
|
r3 = value;
|
|
} else {
|
|
r3 = a2.create();
|
|
}
|
|
if (a1(r3) === false) {
|
|
return null;
|
|
}
|
|
value = a3.create();
|
|
value[a4] = r3;
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun15662, 1363, [1350, 2]) /* metro module 1363, dependencies: [1350, 2] */;
|