decord/source/modules/interactions/SkemaUtils.tsx

46 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 8266
// Function ID: 8267
// Name: SkemaUtils
2026-07-29 08:29:29 +00:00
// Dependencies: [32, 2]
2026-07-20 16:05:17 +00:00
// Exports: getFirstSkemaError
// Module 8266 (SkemaUtils)
import _slicedToArray from "module_32" /* 32 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
function getFirstSkemaFieldError(errors, arg1) {
2026-07-23 10:11:24 +00:00
if (null != errors[_errors]) {
2026-07-20 16:05:17 +00:00
const _Array = Array;
if (Array.isArray(tmp)) {
return tmp[0];
}
}
const entries = Object.entries(errors);
2026-07-29 08:29:29 +00:00
const obj = entries[Symbol.iterator]();
while (obj !== undefined) {
[first, tmp9] = tmp4;
2026-07-29 08:29:29 +00:00
if (first !== _errors) {
if (null != tmp9) {
2026-08-04 21:03:28 +00:00
if (typeof tmp9 === "object") {
2026-07-29 08:29:29 +00:00
let tmp13 = arg1;
let tmp14 = getFirstSkemaFieldError;
if (arg1 == null) {
tmp13 = first;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp14Result = tmp14(tmp9, tmp13);
obj.return();
return tmp14Result;
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-29 08:29:29 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
return null;
}
2026-07-23 10:11:24 +00:00
const _errors = "_errors";
const size = fn(2);
const result = size.fileFinishedImporting("modules/interactions/SkemaUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getFirstSkemaError = function getFirstSkemaError(errors) {
return getFirstSkemaFieldError(errors, undefined);
};