decord/source/modules/user_limited_access/UserLimitedAccessUtils.tsx

30 lines
760 B
TypeScript
Raw Normal View History

// Module ID: 9114
// Function ID: 9115
// Name: UserLimitedAccessUtils
// Dependencies: [1074, 2]
2026-07-20 16:05:17 +00:00
// Exports: isLimitedAccessErrorCode
// Module 9114 (UserLimitedAccessUtils)
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AbortCodes = Constants.AbortCodes;
const result = size.fileFinishedImporting("modules/user_limited_access/UserLimitedAccessUtils.tsx");
2026-07-20 16:05:17 +00:00
export const isLimitedAccessErrorCode = function isLimitedAccessErrorCode(arg0, arg1) {
let tmp = arg0 >= 400;
if (tmp) {
tmp = arg0 < 500;
}
if (tmp) {
tmp = null != arg1;
}
if (tmp) {
tmp = arg1 >= AbortCodes.USER_LIMITED_ACCESS_DEFAULT;
}
if (tmp) {
tmp = arg1 <= AbortCodes.USER_LIMITED_ACCESS_MAX;
}
return tmp;
};