2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 9604
|
|
|
|
|
// Function ID: 9605
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: ClearAfterValues
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [9602, 4070, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 9604 (ClearAfterValues)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import StatusTypes from "StatusTypes" /* 9602 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const ClearAfterValues = StatusTypes.ClearAfterValues;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [, , ];
|
|
|
|
|
({ MINUTES_30: arr[0], HOURS_1: arr[1], HOURS_4: arr[2] } = ClearAfterValues);
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = set.fileFinishedImporting("modules/custom_status/utils/computeInitialClearAfter.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function computeInitialClearAfter() {
|
2026-08-25 06:04:03 +00:00
|
|
|
const CustomStatusSetting = _require(4070).CustomStatusSetting;
|
2026-07-20 16:05:17 +00:00
|
|
|
const setting = CustomStatusSetting.getSetting();
|
|
|
|
|
if (null != setting) {
|
|
|
|
|
if ("" !== setting.expiresAtMs) {
|
|
|
|
|
const _Number2 = Number;
|
|
|
|
|
const NumberResult = Number(setting.expiresAtMs);
|
|
|
|
|
const _isNaN = isNaN;
|
|
|
|
|
if (isNaN(NumberResult)) {
|
|
|
|
|
return ClearAfterValues.TODAY;
|
|
|
|
|
} else if (0 === NumberResult) {
|
|
|
|
|
return ClearAfterValues.DONT_CLEAR;
|
|
|
|
|
} else {
|
|
|
|
|
const _Date2 = Date;
|
|
|
|
|
const date = new Date();
|
|
|
|
|
const _Date3 = Date;
|
|
|
|
|
const date1 = new Date(NumberResult);
|
|
|
|
|
const fullYear = date.getFullYear();
|
|
|
|
|
let tmp3 = fullYear === date1.getFullYear();
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
const month = date.getMonth();
|
|
|
|
|
tmp3 = month === date1.getMonth();
|
|
|
|
|
}
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
tmp3 = date.getDate() === date1.getDate();
|
|
|
|
|
const date2 = date.getDate();
|
|
|
|
|
}
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
const _Number = Number;
|
|
|
|
|
const _Date = Date;
|
2026-07-23 10:11:24 +00:00
|
|
|
_require = Number(NumberResult) - Date.now();
|
2026-07-20 16:05:17 +00:00
|
|
|
let TODAY = items.find((arg0) => closure_0 <= arg0);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (TODAY == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
TODAY = ClearAfterValues.TODAY;
|
|
|
|
|
}
|
|
|
|
|
return TODAY;
|
|
|
|
|
} else {
|
|
|
|
|
return ClearAfterValues.TODAY;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ClearAfterValues.TODAY;
|
|
|
|
|
};
|