This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
// Metro module 1323 (f1324).
export function isOneofGroup(a0) {
if (typeof a0 === "object" && a0 !== null && a0.hasOwnProperty("oneofKind")) {
const r8 = typeof a0.oneofKind;
if (r8 === "string") {
return a0[a0.oneofKind] !== void 0 && Object.keys(a0).length == 2;
}
if (r8 === "undefined") {
return Object.keys(a0).length == 1;
}
return false;
}
return false;
}
export function getOneofValue(a0, a1) {
return a0[a1];
}
export function setOneofValue(a0, a1, a2) {
if (a0.oneofKind !== void 0) {
delete a0[a0.oneofKind];
}
a0.oneofKind = a1;
if (a2 !== void 0) {
a0[a1] = a2;
}
}
export function setUnknownOneofValue(a0, a1, a2) {
if (a0.oneofKind !== void 0) {
delete a0[a0.oneofKind];
}
a0.oneofKind = a1;
if (a2 !== void 0 && a1 !== void 0) {
a0[a1] = a2;
}
}
export function clearOneofValue(a0) {
if (a0.oneofKind !== void 0) {
delete a0[a0.oneofKind];
}
a0.oneofKind = void 0;
}
export function getSelectedOneofValue(a0) {
if (a0.oneofKind !== void 0) {
return a0[a0.oneofKind];
}
}