decord/source/modules/applications/disclosures.tsx

153 lines
4.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9807
// Function ID: 9808
2026-07-20 16:05:17 +00:00
// Name: _getDisclosures
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 676, 530, 9808, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: ackDisclosures, getDisclosures, getTextForDisclosure
2026-08-24 06:08:38 +00:00
// Module 9807 (_getDisclosures)
import create from "create" /* 9808 */;
import closure_2 from "asyncGeneratorStep" /* 5 */;
import { Endpoints } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function _getDisclosures() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
c2 = 0;
c3 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0) {
2026-08-24 06:08:38 +00:00
closure_1 = tmp2;
2026-08-04 21:03:28 +00:00
const result = c3.APPLICATION_DISCLOSURES(lib);
2026-08-24 06:08:38 +00:00
const HTTP = lib(closure_1_1[2]).HTTP;
obj1 = { url: null, retries: 3, rejectWithError: null };
2026-08-04 21:03:28 +00:00
obj1[0] = result;
2026-08-24 06:08:38 +00:00
obj1[2] = lib(closure_1_1[2]).rejectWithMigratedError();
2026-08-04 21:03:28 +00:00
lib = yield HTTP.get(obj1);
const obj = { disclosures: null, ackedDisclosures: null, allAcked: null };
obj[0] = lib.body.disclosures;
obj[1] = lib.body.acked_disclosures;
obj[2] = lib.body.all_acked;
return obj;
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-20 16:05:17 +00:00
}
function _ackDisclosures() {
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;
c2 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1) {
if (c2 === 2) {
c2 = 3;
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 {
c2 = 2;
if (0 === c3) {
if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 === 2) {
c2 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const result = c3.APPLICATION_DISCLOSURES(callback);
const HTTP = callback(530).HTTP;
2026-08-24 06:08:38 +00:00
obj1 = { url: null, body: null, rejectWithError: null };
2026-07-29 08:29:29 +00:00
obj1[0] = result;
const obj2 = { disclosures: null };
obj2[0] = dependencyMap;
obj1[1] = obj2;
obj1[2] = callback(530).rejectWithMigratedError();
c3 = 1;
c2 = 1;
const obj3 = { value: null, done: false };
obj3[0] = HTTP.post(obj1);
return obj3;
}
} else if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 === 2) {
c2 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
c2 = 3;
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp5) {
c2 = tmp;
throw tmp5;
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_5 = 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
let result = require("set").fileFinishedImporting("modules/applications/disclosures.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const ApplicationDisclosure = require("create").ApplicationDisclosureType;
export const getDisclosures = function getDisclosures(closure_0) {
const self = this;
const apply = _getDisclosures.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
export const ackDisclosures = function ackDisclosures(closure_0, closure_1_50) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _ackDisclosures.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-07-29 08:29:29 +00:00
export const getTextForDisclosure = function getTextForDisclosure(toFixed) {
2026-08-24 06:08:38 +00:00
if (create.ApplicationDisclosureType.IP_LOCATION === toFixed) {
2026-07-29 08:29:29 +00:00
const intl2 = tmp(1236).intl;
return intl2.string(tmp(1236).t["6wPmjo"]);
2026-08-24 06:08:38 +00:00
} else if (tmp(9808).ApplicationDisclosureType.DISPLAYS_ADVERTISEMENTS === toFixed) {
2026-07-29 08:29:29 +00:00
const intl = tmp(1236).intl;
return intl.string(tmp(1236).t["/uOMKZ"]);
2026-07-20 16:05:17 +00:00
} else {
return null;
}
};