decord/source/3579_dayAndTimeWithAdjective.js

47 lines
1.6 KiB
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 3579
// Function ID: 3580
2026-07-29 08:29:29 +00:00
// Name: dayAndTimeWithAdjective
2026-08-25 06:04:03 +00:00
// Dependencies: [3478]
2026-07-23 10:11:24 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 3579 (dayAndTimeWithAdjective)
import isSameUTCWeek from "isSameUTCWeek" /* 3478 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
if (!isSameUTCWeek) {
const obj = { default: null };
obj[0] = isSameUTCWeek;
let tmp3 = obj;
} else {
tmp3 = isSameUTCWeek;
}
function dayAndTimeWithAdjective(arg0, arg1, arg2, arg3) {
2026-08-24 06:08:38 +00:00
if (isSameUTCWeek.default(arg1, arg2, arg3)) {
2026-07-29 08:29:29 +00:00
let tmp2 = closure_2;
2026-07-23 10:11:24 +00:00
} else if ("lastWeek" === arg0) {
2026-07-29 08:29:29 +00:00
tmp2 = closure_1;
2026-07-23 10:11:24 +00:00
} else if ("nextWeek" !== arg0) {
const _Error = Error;
const concat = "Cannot determine adjectives for token ".concat;
2026-08-24 06:08:38 +00:00
error = new Error("Cannot determine adjectives for token ".concat(arg0));
2026-07-23 10:11:24 +00:00
throw error;
} else {
2026-07-29 08:29:29 +00:00
tmp2 = closure_3;
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
return "'".concat(tmp2[table[arg1.getUTCDay(arg1)]], "' eeee 'o' p");
2026-07-23 10:11:24 +00:00
}
2026-08-24 06:08:38 +00:00
isSameUTCWeek = tmp3;
2026-07-23 10:11:24 +00:00
let closure_1 = { masculine: "ostatni", feminine: "ostatnia" };
let closure_2 = { masculine: "ten", feminine: "ta" };
let closure_3 = { masculine: "nast\u0119pny", feminine: "nast\u0119pna" };
let closure_4 = { 0: "feminine", 1: "masculine", 2: "masculine", 3: "feminine", 4: "masculine", 5: "masculine", 6: "feminine" };
2026-07-29 08:29:29 +00:00
let closure_5 = { lastWeek: dayAndTimeWithAdjective, yesterday: "'wczoraj o' p", today: "'dzisiaj o' p", tomorrow: "'jutro o' p", nextWeek: dayAndTimeWithAdjective, other: "P" };
2026-07-23 10:11:24 +00:00
export default function formatRelative(arg0, arg1, arg2, arg3) {
let tmpResult = tmp;
2026-08-04 21:03:28 +00:00
if (typeof table2[arg0] === "function") {
2026-07-23 10:11:24 +00:00
tmpResult = tmp(arg0, arg1, arg2, arg3);
}
return tmpResult;
};
export default exports.default;