68 lines
2.4 KiB
React
68 lines
2.4 KiB
React
/* Metro module 1332; source: unknown; dependencies: [] */
|
|
function _fun15222(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1459:6, offset: 0x00e272c0, size: 143 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.isOneofGroup = undefined;
|
|
exports.getOneofValue = undefined;
|
|
exports.setOneofValue = undefined;
|
|
exports.setUnknownOneofValue = undefined;
|
|
exports.clearOneofValue = undefined;
|
|
exports.getSelectedOneofValue = undefined;
|
|
exports.isOneofGroup = isOneofGroup;
|
|
exports.getOneofValue = function(a0, a1) {
|
|
return a0[a1];
|
|
};
|
|
exports.setOneofValue = function(a0, a1, a2) {
|
|
if (a0.oneofKind !== undefined) {
|
|
delete a0[a0.oneofKind];
|
|
}
|
|
a0.oneofKind = a1;
|
|
if (a2 !== undefined) {
|
|
a0[a1] = a2;
|
|
}
|
|
};
|
|
exports.setUnknownOneofValue = function(a0, a1, a2) {
|
|
if (a0.oneofKind !== undefined) {
|
|
delete a0[a0.oneofKind];
|
|
}
|
|
a0.oneofKind = a1;
|
|
if (a2 !== undefined && a1 !== undefined) {
|
|
a0[a1] = a2;
|
|
}
|
|
};
|
|
exports.clearOneofValue = function(a0) {
|
|
if (a0.oneofKind !== undefined) {
|
|
delete a0[a0.oneofKind];
|
|
}
|
|
a0.oneofKind = undefined;
|
|
};
|
|
exports.getSelectedOneofValue = function(a0) {
|
|
if (a0.oneofKind !== undefined) {
|
|
return a0[a0.oneofKind];
|
|
}
|
|
};
|
|
}
|
|
|
|
function isOneofGroup(a0) { // fn#15223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1459:226, offset: 0x00e2734f, size: 160 bytes, params: 2, frame: 12
|
|
var value;
|
|
var Object;
|
|
if (typeof a0 === 'object') {
|
|
if (a0 === null) {
|
|
return false;
|
|
}
|
|
if (a0.hasOwnProperty('oneofKind')) {
|
|
value = typeof a0.oneofKind;
|
|
if (value === 'string') {
|
|
return a0[a0.oneofKind] !== undefined && global.Object.keys(a0).length == 2;
|
|
}
|
|
if (value === 'undefined') {
|
|
Object = global.Object;
|
|
return Object.keys(a0).length == 1;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|