decord/source/3271_formatRelative.js
2026-07-31 08:44:05 +00:00

90 lines
2.8 KiB
JavaScript

// Module ID: 3271
// Function ID: 3272
// Name: formatRelative
// Dependencies: [3272, 3274]
// Exports: default
// Module 3271 (formatRelative)
import _typeof from "_typeof";
import isSameUTCWeek from "isSameUTCWeek";
if (!_typeof) {
let obj = { default: null };
obj[0] = _typeof;
let tmp3 = obj;
} else {
tmp3 = _typeof;
}
let c0 = tmp3;
if (!isSameUTCWeek) {
obj = { default: null };
obj[0] = isSameUTCWeek;
let tmp5 = obj;
} else {
tmp5 = isSameUTCWeek;
}
let closure_1 = tmp5;
let closure_2 = ["\u043D\u0435\u0434\u0435\u043B\u044F", "\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A", "\u0432\u0442\u043E\u0440\u043D\u0438\u043A", "\u0441\u0440\u044F\u0434\u0430", "\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A", "\u043F\u0435\u0442\u044A\u043A", "\u0441\u044A\u0431\u043E\u0442\u0430"];
let closure_3 = {
lastWeek: function lastWeekFormatToken(arg0, arg1, arg2) {
const defaultResult = tmp3.default(arg0);
const uTCDay = defaultResult.getUTCDay();
let text = dependencyMap[uTCDay];
if (tmp5.default(defaultResult, arg1, arg2)) {
if (2 === uTCDay) {
text = `'във ${tmp2}`;
let text1 = `'във ${tmp2} в' p`;
} else {
text1 = `${"'\u0432 " + `'във ${tmp2}`} в' p`;
}
tmp5 = text1;
} else {
if (0 !== uTCDay) {
if (3 !== uTCDay) {
if (6 !== uTCDay) {
let text2 = `${"'\u043C\u0438\u043D\u0430\u043B\u0438\u044F " + tmp2} в' p`;
}
return text2;
}
}
text2 = `${"'\u043C\u0438\u043D\u0430\u043B\u0430\u0442\u0430 " + tmp2} в' p`;
}
},
yesterday: "'\u0432\u0447\u0435\u0440\u0430 \u0432' p",
today: "'\u0434\u043D\u0435\u0441 \u0432' p",
tomorrow: "'\u0443\u0442\u0440\u0435 \u0432' p",
nextWeek: function nextWeekFormatToken(arg0, arg1, arg2) {
const defaultResult = tmp3.default(arg0);
const uTCDay = defaultResult.getUTCDay();
let text = dependencyMap[uTCDay];
if (tmp5.default(defaultResult, arg1, arg2)) {
if (2 === uTCDay) {
text = `'във ${tmp2}`;
let text1 = `'във ${tmp2} в' p`;
} else {
text1 = `${"'\u0432 " + `'във ${tmp2}`} в' p`;
}
tmp5 = text1;
} else {
if (0 !== uTCDay) {
if (3 !== uTCDay) {
if (6 !== uTCDay) {
let text2 = `${"'\u0441\u043B\u0435\u0434\u0432\u0430\u0449\u0438\u044F " + tmp2} в' p`;
}
return text2;
}
}
text2 = `${"'\u0441\u043B\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 " + tmp2} в' p`;
}
},
other: "P"
};
export default function formatRelative(arg0, arg1, arg2, arg3) {
let tmpResult = tmp;
if (typeof table[arg0] !== "disabledUntil") {
tmpResult = tmp(arg1, arg2, arg3);
}
return tmpResult;
};
export default exports.default;