Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
// Module ID: 14040
|
|
// Function ID: 14041
|
|
// Name: AppLauncherBadgeUtils
|
|
// Dependencies: [2]
|
|
// Exports: getNewestBadgeableVersion
|
|
|
|
// Module 14040 (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;
|
|
};
|