2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 15220
|
|
|
|
|
// Function ID: 15221
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: AdsVideoUtils
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [1382, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isSourceError
|
|
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 15220 (AdsVideoUtils)
|
|
|
|
|
import PlatformUtils from "PlatformUtils" /* 1382 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let closure_2 = [-1000, -1003, -1004, -1008];
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/quests/native/AdsVideoUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const isSourceError = function isSourceError(error) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let code;
|
|
|
|
|
let errorException;
|
|
|
|
|
let isIOSResult;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (error != null) {
|
2026-10-03 08:58:59 +00:00
|
|
|
code = error.error.code;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (error != null) {
|
2026-10-03 08:58:59 +00:00
|
|
|
errorException = error.error.errorException;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = PlatformUtils;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (obj.isAndroid()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let hasItem;
|
|
|
|
|
if (errorException != null) {
|
|
|
|
|
hasItem = errorException.includes("Source error");
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
isIOSResult = hasItem;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-10-03 08:58:59 +00:00
|
|
|
const tmpResult = PlatformUtils;
|
|
|
|
|
isIOSResult = tmpResult.isIOS();
|
2026-07-29 08:29:29 +00:00
|
|
|
if (isIOSResult) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const hasItem1 = null != code && closure_2.includes(code);
|
2026-07-29 08:29:29 +00:00
|
|
|
isIOSResult = hasItem1;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return isIOSResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|