decord/source/modules/parent_tools/ParentalConsentWarningActionCreators.tsx

70 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 16200
// Function ID: 125564
2026-07-20 16:05:17 +00:00
// Name: clearPendingRetry
2026-07-24 07:16:23 +00:00
// Dependencies: [5, 13821, 4, 561, 664, 16201, 507, 686, 1184, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearWarning, forceFetchWarning, resetFetchState
2026-07-24 07:16:23 +00:00
// Module 16200 (clearPendingRetry)
2026-07-23 10:11:24 +00:00
import isParentalConsentWarningFetchEnabled from "isParentalConsentWarningFetchEnabled";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import importDefaultResult from "Backoff";
const require = arg1;
2026-07-20 16:05:17 +00:00
function clearPendingRetry() {
2026-07-23 10:11:24 +00:00
if (null != c8) {
2026-07-20 16:05:17 +00:00
const _clearTimeout = clearTimeout;
2026-07-23 10:11:24 +00:00
clearTimeout(c8);
c8 = null;
2026-07-20 16:05:17 +00:00
}
}
function fetchWarning() {
if (obj.isParentalConsentWarningFetchEnabled("parental_consent_warning_manager")) {
2026-07-23 10:11:24 +00:00
if (null != c7) {
return c7;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const _require = c9;
2026-07-20 16:05:17 +00:00
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const tmp7 = callback(tmp)();
c7 = tmp7;
2026-07-20 16:05:17 +00:00
return tmp7;
}
} else {
return Promise.resolve();
}
2026-07-24 07:16:23 +00:00
obj = _require(16201);
2026-07-20 16:05:17 +00:00
}
function maybeFetchWarning() {
return _maybeFetchWarning(...arguments);
}
function _maybeFetchWarning() {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback(tmp);
2026-07-20 16:05:17 +00:00
return obj(...arguments);
}
function _forceFetchWarning() {
// CreateGeneratorClosureLongIndex (0x67)
2026-07-23 10:11:24 +00:00
const obj = callback(tmp);
2026-07-20 16:05:17 +00:00
return obj(...arguments);
}
2026-07-23 10:11:24 +00:00
const logger = new require("set").Logger("ParentalConsentWarning");
const result = 5 * require("set").Millis.SECOND;
importDefaultResult = new importDefaultResult(result, 5 * require("set").Millis.MINUTE, true);
let c7 = null;
let c8 = null;
let c9 = 0;
const result1 = require("log").fileFinishedImporting("modules/parent_tools/ParentalConsentWarningActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export { maybeFetchWarning };
export const forceFetchWarning = function forceFetchWarning() {
return _forceFetchWarning(...arguments);
};
export const resetFetchState = function resetFetchState() {
closure_9 = closure_9 + 1;
clearPendingRetry();
2026-07-23 10:11:24 +00:00
let c7 = null;
2026-07-20 16:05:17 +00:00
importDefaultResult.succeed();
};
export const clearWarning = function clearWarning() {
2026-07-23 10:11:24 +00:00
importDefault(686).dispatch({ type: "PARENTAL_CONSENT_WARNING_CLEARED" });
2026-07-20 16:05:17 +00:00
};