2026-07-28 08:39:19 +00:00
|
|
|
// Module ID: 3699
|
|
|
|
|
// Function ID: 28097
|
2026-07-23 10:11:24 +00:00
|
|
|
// Name: result2
|
2026-07-28 08:39:19 +00:00
|
|
|
// Dependencies: [3246]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-28 08:39:19 +00:00
|
|
|
// Module 3699 (result2)
|
2026-07-23 10:11:24 +00:00
|
|
|
import isSameUTCWeek from "isSameUTCWeek";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
function checkWeek(getTime, getTime2, date) {
|
|
|
|
|
let str = "eeee p";
|
|
|
|
|
if (!tmp3.default(getTime, getTime2, date)) {
|
|
|
|
|
const time = getTime.getTime();
|
|
|
|
|
let str2 = "'\u4E0A\u4E2A'eeee p";
|
|
|
|
|
if (time > getTime2.getTime()) {
|
|
|
|
|
str2 = "'\u4E0B\u4E2A'eeee p";
|
|
|
|
|
}
|
|
|
|
|
str = str2;
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
if (!isSameUTCWeek) {
|
|
|
|
|
let obj = { default: isSameUTCWeek };
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp3 = obj;
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp3 = isSameUTCWeek;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = tmp3;
|
|
|
|
|
obj = { lastWeek: checkWeek, yesterday: "'\u6628\u5929' p", today: "'\u4ECA\u5929' p", tomorrow: "'\u660E\u5929' p", nextWeek: checkWeek, other: "PP p" };
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function formatRelative(arg0, arg1, arg2, arg3) {
|
|
|
|
|
let tmpResult = tmp;
|
2026-07-22 07:54:56 +00:00
|
|
|
if ("function" === typeof obj[arg0]) {
|
2026-07-20 16:05:17 +00:00
|
|
|
tmpResult = tmp(arg1, arg2, arg3);
|
|
|
|
|
}
|
|
|
|
|
return tmpResult;
|
|
|
|
|
};
|
|
|
|
|
export default exports.default;
|