decord/alpha/source/modules/holidays/HolidayEventsUtils.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

73 lines
2.3 KiB
TypeScript

// Module ID: 17894
// Function ID: 17895
// Name: HolidayEventsUtils
// Dependencies: [17890, 2]
// Module 17894 (HolidayEventsUtils)
import HolidayEventsConfigDefault from "HolidayEventsConfig" /* 17890 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/holidays/HolidayEventsUtils.tsx");
export default {
isEligible() {
const isExperimentEligible = HolidayEventsConfigDefault.getIsExperimentEligible();
const timestamp = Date.now();
return timestamp >= HolidayEventsConfigDefault.startTimeMs && timestamp <= HolidayEventsConfigDefault.endTimeMs && isExperimentEligible;
},
useHolidaySoundpack() {
const isExperimentEligible = HolidayEventsConfigDefault.useIsExperimentEligible();
const timestamp = Date.now();
let tmp6 = null;
if (tmp5) {
tmp6 = null;
if (null != tmp(17890).soundpack) {
tmp6 = null;
if (null != tmp(17890).soundpackLabel) {
const obj2 = { soundpack: tmp(17890).soundpack, soundpackLabel: tmp(17890).soundpackLabel };
tmp6 = obj2;
}
}
}
return tmp6;
},
useIsEligible() {
const isExperimentEligible = HolidayEventsConfigDefault.useIsExperimentEligible();
const timestamp = Date.now();
return timestamp >= HolidayEventsConfigDefault.startTimeMs && timestamp <= HolidayEventsConfigDefault.endTimeMs && isExperimentEligible;
},
getAppSpinnerSources() {
const timestamp = Date.now();
let appSpinnerSources = null;
if (tmp4) {
appSpinnerSources = tmp2(17890).appSpinnerSources;
}
return appSpinnerSources;
},
getLoadingTips() {
const timestamp = Date.now();
let tmp5 = null;
if (tmp4) {
const getLoadingTips = tmp2(17890).getLoadingTips;
let loadingTips;
if (getLoadingTips != null) {
loadingTips = getLoadingTips();
}
tmp5 = loadingTips;
const tmp2Result = tmp2(17890);
}
return tmp5;
},
getHolidaySoundpack() {
const isExperimentEligible = HolidayEventsConfigDefault.getIsExperimentEligible();
const timestamp = Date.now();
let soundpack = null;
if (tmp5) {
soundpack = null;
if (null != tmp(17890).soundpack) {
soundpack = tmp(17890).soundpack;
}
}
return soundpack;
}
};