decord/source/3375_dayAndTimeWithAdjective.js
2026-07-31 08:44:05 +00:00

46 lines
1.6 KiB
JavaScript

// Module ID: 3375
// Function ID: 3376
// Name: dayAndTimeWithAdjective
// Dependencies: [3274]
// Exports: default
// Module 3375 (dayAndTimeWithAdjective)
import isSameUTCWeek from "isSameUTCWeek";
if (!isSameUTCWeek) {
const obj = { default: null };
obj[0] = isSameUTCWeek;
let tmp3 = obj;
} else {
tmp3 = isSameUTCWeek;
}
function dayAndTimeWithAdjective(arg0, arg1, arg2, arg3) {
if (tmp3.default(arg1, arg2, arg3)) {
let tmp2 = closure_2;
} else if ("lastWeek" === arg0) {
tmp2 = closure_1;
} else if ("nextWeek" !== arg0) {
const _Error = Error;
const concat = "Cannot determine adjectives for token ".concat;
const error = new Error("Cannot determine adjectives for token ".concat(arg0));
throw error;
} else {
tmp2 = closure_3;
}
return "'".concat(tmp2[table[arg1.getUTCDay(arg1)]], "' eeee 'o' p");
}
let c0 = tmp3;
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" };
let closure_5 = { lastWeek: dayAndTimeWithAdjective, yesterday: "'wczoraj o' p", today: "'dzisiaj o' p", tomorrow: "'jutro o' p", nextWeek: dayAndTimeWithAdjective, other: "P" };
export default function formatRelative(arg0, arg1, arg2, arg3) {
let tmpResult = tmp;
if (typeof table2[arg0] !== "disabledUntil") {
tmpResult = tmp(arg0, arg1, arg2, arg3);
}
return tmpResult;
};
export default exports.default;