decord/source/modules/app_launcher/utils/AppLauncherBadgeUtils.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

38 lines
1.1 KiB
TypeScript

// Module ID: 14093
// Function ID: 14094
// Name: AppLauncherBadgeUtils
// Dependencies: [2]
// Exports: getNewestBadgeableVersion
// Module 14093 (AppLauncherBadgeUtils)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/app_launcher/utils/AppLauncherBadgeUtils.tsx");
export const getNewestBadgeableVersion = function getNewestBadgeableVersion(arg0) {
({ storeState, surface } = arg0);
const timestamp = Date.now();
const dateRangesForSurfaces = storeState.dateRangesForSurfaces;
let tmp2;
if (dateRangesForSurfaces != null) {
tmp2 = dateRangesForSurfaces[surface];
}
let num = 0;
if (null != tmp2) {
const _Date = Date;
const date = new Date(tmp2.fromDate);
num = 0;
if (date.getTime() < timestamp) {
const _Date2 = Date;
const date1 = new Date(tmp2.untilDate);
num = 0;
if (date1.getTime() > timestamp) {
const _Math = Math;
const _Date3 = Date;
const date2 = new Date(tmp2.fromDate);
num = Math.floor(date2.getTime() / 1000);
}
}
}
return num;
};