decord/source/modules/interactions/SkemaUtils.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

45 lines
1.1 KiB
TypeScript

// Module ID: 8266
// Function ID: 8267
// Name: SkemaUtils
// Dependencies: [32, 2]
// Exports: getFirstSkemaError
// Module 8266 (SkemaUtils)
import _slicedToArray from "module_32" /* 32 */;
function getFirstSkemaFieldError(errors, arg1) {
if (null != errors[_errors]) {
const _Array = Array;
if (Array.isArray(tmp)) {
return tmp[0];
}
}
const entries = Object.entries(errors);
const obj = entries[Symbol.iterator]();
while (obj !== undefined) {
[first, tmp9] = tmp4;
if (first !== _errors) {
if (null != tmp9) {
if (typeof tmp9 === "object") {
let tmp13 = arg1;
let tmp14 = getFirstSkemaFieldError;
if (arg1 == null) {
tmp13 = first;
}
let tmp14Result = tmp14(tmp9, tmp13);
obj.return();
return tmp14Result;
}
}
}
continue;
}
return null;
}
const _errors = "_errors";
const size = fn(2);
const result = size.fileFinishedImporting("modules/interactions/SkemaUtils.tsx");
export const getFirstSkemaError = function getFirstSkemaError(errors) {
return getFirstSkemaFieldError(errors, undefined);
};