This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,49 @@
// Metro module 11673 (f11674).
import SnowflakeUtils from "../../../../utils/SnowflakeUtils";
let c7985_2 = 259200000;
export const BOOST_EXPIRING_DISPLAY_WINDOW_DAYS = 3;
export const BOOST_EXPIRING_DISPLAY_WINDOW_MS = 259200000;
export function getBoostLifecycleInfo(a0, a1) {
let r15;
L9: {
L8: {
if (!a0.ended) {
if (a0.endsAt != null && a0.endsAt.getTime() <= a1) {
break L8;
}
if (a0.endsAt != null && a0.endsAt.getTime() - a1 <= c7985_2) {
r15 = {
phase: "expiring",
endsAt: a0.endsAt
};
break L9;
}
r15 = {
phase: "gave"
};
break L9;
}
}
r15 = {
phase: "expired"
};
}
return r15;
}
export function getBoostLifecycleTimestamp(a0, a1) {
const phase = a1.phase;
if (phase === "gave") {
return SnowflakeUtils.extractTimestamp(a0.id);
}
if (phase === "expiring") {
return a1.endsAt.getTime() - c7985_2;
}
if (phase === "expired") {
const endsAt = a0.endsAt;
let r14 = endsAt == null ? void 0 : endsAt.getTime();
if (r14 == null) {
r14 = SnowflakeUtils.extractTimestamp(a0.id);
}
return r14;
}
}