decord/alpha/source/modules/holidays/HolidayEventsUtils.tsx

74 lines
2.3 KiB
TypeScript
Raw Normal View History

// Module ID: 17400
// Function ID: 17401
// Name: HolidayEventsUtils
// Dependencies: [17396, 2]
2026-07-20 16:05:17 +00:00
// Module 17400 (HolidayEventsUtils)
import HolidayEventsConfigDefault from "HolidayEventsConfig" /* 17396 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/holidays/HolidayEventsUtils.tsx");
2026-07-20 16:05:17 +00:00
export default {
2026-07-29 08:29:29 +00:00
isEligible() {
const isExperimentEligible = HolidayEventsConfigDefault.getIsExperimentEligible();
2026-07-29 08:29:29 +00:00
const timestamp = Date.now();
return timestamp >= HolidayEventsConfigDefault.startTimeMs && timestamp <= HolidayEventsConfigDefault.endTimeMs && isExperimentEligible;
2026-07-29 08:29:29 +00:00
},
2026-07-20 16:05:17 +00:00
useHolidaySoundpack() {
const isExperimentEligible = HolidayEventsConfigDefault.useIsExperimentEligible();
2026-07-29 08:29:29 +00:00
const timestamp = Date.now();
let tmp6 = null;
if (tmp5) {
tmp6 = null;
if (null != tmp(17396).soundpack) {
2026-07-29 08:29:29 +00:00
tmp6 = null;
if (null != tmp(17396).soundpackLabel) {
const obj2 = { soundpack: tmp(17396).soundpack, soundpackLabel: tmp(17396).soundpackLabel };
tmp6 = obj2;
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-29 08:29:29 +00:00
return tmp6;
},
useIsEligible() {
const isExperimentEligible = HolidayEventsConfigDefault.useIsExperimentEligible();
2026-07-29 08:29:29 +00:00
const timestamp = Date.now();
return timestamp >= HolidayEventsConfigDefault.startTimeMs && timestamp <= HolidayEventsConfigDefault.endTimeMs && isExperimentEligible;
2026-07-20 16:05:17 +00:00
},
getAppSpinnerSources() {
2026-07-29 08:29:29 +00:00
const timestamp = Date.now();
2026-07-20 16:05:17 +00:00
let appSpinnerSources = null;
2026-07-29 08:29:29 +00:00
if (tmp4) {
appSpinnerSources = tmp2(17396).appSpinnerSources;
2026-07-20 16:05:17 +00:00
}
return appSpinnerSources;
},
getLoadingTips() {
2026-07-29 08:29:29 +00:00
const timestamp = Date.now();
let tmp5 = null;
if (tmp4) {
const getLoadingTips = tmp2(17396).getLoadingTips;
2026-07-20 16:05:17 +00:00
let loadingTips;
2026-07-29 08:29:29 +00:00
if (getLoadingTips != null) {
loadingTips = getLoadingTips();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp5 = loadingTips;
const tmp2Result = tmp2(17396);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp5;
2026-07-20 16:05:17 +00:00
},
getHolidaySoundpack() {
const isExperimentEligible = HolidayEventsConfigDefault.getIsExperimentEligible();
2026-07-29 08:29:29 +00:00
const timestamp = Date.now();
2026-07-20 16:05:17 +00:00
let soundpack = null;
2026-07-29 08:29:29 +00:00
if (tmp5) {
2026-07-20 16:05:17 +00:00
soundpack = null;
if (null != tmp(17396).soundpack) {
soundpack = tmp(17396).soundpack;
2026-07-20 16:05:17 +00:00
}
}
return soundpack;
}
};