35 lines
883 B
TypeScript
35 lines
883 B
TypeScript
// Metro module 10336 (f10337).
|
|
import { Storage } from "../../../_bundle/Module595";
|
|
let c6914_2 = "inAppNotificationExpandNux";
|
|
let c6914_3 = {
|
|
lastShownAtMs: 0,
|
|
numTimesShown: 0
|
|
};
|
|
export const MAX_TIMES_SHOWN = 7;
|
|
export const ONE_DAY_MS = 86400000;
|
|
export const NUX_REVEAL_DELAY_MS = 1000;
|
|
export const NUX_REVEAL_DURATION_MS = 300;
|
|
export const DRAG_HANDLE_BOUNCE_DISTANCE = 4;
|
|
export const DRAG_HANDLE_BOUNCE_DURATION_MS = 650;
|
|
export function getExpandNUXState() {
|
|
let r9 = Storage.get(c6914_2);
|
|
if (r9 == null) {
|
|
r9 = c6914_3;
|
|
}
|
|
return r9;
|
|
}
|
|
export function markExpandNUXStateAsShown() {
|
|
let r13 = Storage.get(c6914_2);
|
|
if (r13 == null) {
|
|
r13 = c6914_3;
|
|
}
|
|
Storage.set(c6914_2, {
|
|
...r13,
|
|
numTimesShown: r13.numTimesShown + 1,
|
|
lastShownAtMs: Date.now()
|
|
});
|
|
}
|
|
export function resetExpandNUXState() {
|
|
Storage.set(c6914_2, c6914_3);
|
|
}
|