decord/source/modules/activities/utils/fetchIsLinkTrusted.tsx

121 lines
3.4 KiB
TypeScript
Raw Normal View History

// Module ID: 14486
// Function ID: 14487
2026-07-20 16:05:17 +00:00
// Name: _fetchIsLinkTrusted
// Dependencies: [5, 1074, 1272, 2]
2026-07-20 16:05:17 +00:00
// Exports: fetchIsLinkTrusted
// Module 14486 (_fetchIsLinkTrusted)
2026-08-24 06:08:38 +00:00
import closure_2 from "asyncGeneratorStep" /* 5 */;
import { Endpoints } from "ME" /* 1074 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _fetchIsLinkTrusted() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0, arg1) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
c3 = 0;
c5 = 0;
c4 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, body) {
if (c5 === 2) {
c5 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp5 === 3) {
if (arg0 === 1) {
throw body;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = body;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c5 = 2;
if (0 === c3) {
if (arg0 === 1) {
c5 = 3;
throw body;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = body;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_2 = tmp6;
2026-07-29 08:29:29 +00:00
body = undefined;
if (undefined === body) {
c5 = 3;
return { value: false, done: true };
} else {
2026-08-24 06:08:38 +00:00
c4 = 1;
2026-07-29 08:29:29 +00:00
const HTTP = callback(table[2]).HTTP;
2026-08-24 06:08:38 +00:00
obj1 = { url: null, rejectWithError: false, query: null, timeout: 500 };
2026-07-29 08:29:29 +00:00
obj1[0] = c3.ACTIVITIES_TRUSTED_LINKS(tmp20);
const obj2 = { url: null };
obj2[0] = tmp21;
obj1[2] = obj2;
c3 = 2;
c5 = 1;
const obj3 = { value: null, done: false };
obj3[0] = HTTP.get(obj1);
return obj3;
}
}
} else if (1 === tmp6) {
c4 = 0;
c5 = 3;
return { value: false, done: true };
} else if (arg0 === 1) {
c5 = 3;
throw body;
} else if (arg0 === 2) {
c4 = 0;
c5 = 3;
const obj4 = { value: null, done: true };
obj4[0] = body;
return obj4;
} else {
body = body.body;
const _Boolean = Boolean;
c4 = 0;
c5 = 3;
obj = { value: null, done: true };
obj[0] = Boolean(body.trusted);
return obj;
}
} catch (tmp12) {
if (tmp3 === c4) {
c5 = tmp2;
throw tmp12;
} else {
c3 = tmp;
}
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_4 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/activities/utils/fetchIsLinkTrusted.tsx");
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
export const fetchIsLinkTrusted = function fetchIsLinkTrusted(id2, arg1) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _fetchIsLinkTrusted.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};