decord/source/modules/age_assurance/native/PlayAgeSignals.tsx

109 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16772
// Function ID: 16773
2026-07-21 22:01:30 +00:00
// Name: _getAgeSignals
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 16773, 16774, 2]
2026-08-15 05:55:55 +00:00
// Exports: getAgeSignals
2026-07-21 22:01:30 +00:00
2026-08-24 06:08:38 +00:00
// Module 16772 (_getAgeSignals)
import closure_3 from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
2026-08-12 06:57:52 +00:00
const require = arg1;
2026-07-21 22:01:30 +00:00
function _getAgeSignals() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback(function*() {
2026-08-12 06:57:52 +00:00
if (c0 === 2) {
c0 = 3;
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
2026-08-12 06:57:52 +00:00
c0 = 2;
if (0 === v0) {
2026-07-29 08:29:29 +00:00
if (arg0 === 1) {
2026-08-12 06:57:52 +00:00
c0 = 3;
2026-07-29 08:29:29 +00:00
throw arg1;
} else if (arg0 === 2) {
2026-08-12 06:57:52 +00:00
c0 = 3;
2026-07-29 08:29:29 +00:00
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
if (null == v0(closure_1_2[1])) {
2026-07-29 08:29:29 +00:00
const _Error = Error;
2026-08-24 06:08:38 +00:00
error = new Error("NativePlayAgeSignalsModule is not available on this platform");
2026-07-29 08:29:29 +00:00
throw error;
} else {
2026-08-12 06:57:52 +00:00
(function applyFakeAgeSignalsScenarioFromExperiment() {
if (null != v1(table[1])) {
const fakePlayAgeSignalsConfig = v3(tmp2[2]).getFakePlayAgeSignalsConfig("PlayAgeSignals.getAgeSignals");
({ enabled, scenario } = fakePlayAgeSignalsConfig);
const obj = v3(tmp2[2]);
let str2 = "";
if (enabled) {
str2 = scenario;
}
const result = v1(tmp2[1]).setFakeAgeSignalsScenario(str2);
const tmpResult = v1(tmp2[1]);
}
})();
2026-07-29 08:29:29 +00:00
v0 = 1;
2026-08-12 06:57:52 +00:00
c0 = 1;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: false };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp5(tmp6[1]).getAgeSignals();
return obj1;
}
tmp5 = v0;
2026-08-24 06:08:38 +00:00
tmp6 = closure_1_2;
2026-07-29 08:29:29 +00:00
}
} else if (arg0 === 1) {
2026-08-12 06:57:52 +00:00
c0 = 3;
2026-07-29 08:29:29 +00:00
throw arg1;
} else if (arg0 === 2) {
2026-08-12 06:57:52 +00:00
c0 = 3;
2026-07-29 08:29:29 +00:00
const obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
2026-08-12 06:57:52 +00:00
c0 = 3;
2026-07-29 08:29:29 +00:00
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
2026-08-12 06:57:52 +00:00
} catch (tmp14) {
c0 = tmp;
throw tmp14;
2026-07-29 08:29:29 +00:00
}
}
});
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-21 22:01:30 +00:00
}
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/age_assurance/native/PlayAgeSignals.tsx");
2026-07-21 22:01:30 +00:00
2026-08-15 05:55:55 +00:00
export const AgeSignalsVerificationStatus = { VERIFIED: 0, SUPERVISED: 1, SUPERVISED_APPROVAL_PENDING: 2, SUPERVISED_APPROVAL_DENIED: 3, UNKNOWN: 4, DECLARED: 5 };
2026-07-21 22:01:30 +00:00
export const getAgeSignals = function getAgeSignals() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _getAgeSignals.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-21 22:01:30 +00:00
};