Rocky_Mountain_Vending/.pnpm-store/v10/files/d9/a53a800ef72558b9e4d622f65a4a28411199ab671740ffc915be5dbd893929a884287b8ce46f93e894529fda6ee005d974c9d9e77c3ae2f7ea25ea88fa6a03
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

65 lines
1.5 KiB
Text

"use strict";
exports.formatRelative = void 0;
var _index = require("../../../isSameWeek.cjs");
const accusativeWeekdays = [
"жексенбіде",
"дүйсенбіде",
"сейсенбіде",
"сәрсенбіде",
"бейсенбіде",
"жұмада",
"сенбіде",
];
function lastWeek(day) {
const weekday = accusativeWeekdays[day];
return "'өткен " + weekday + " сағат' p'-де'";
}
function thisWeek(day) {
const weekday = accusativeWeekdays[day];
return "'" + weekday + " сағат' p'-де'";
}
function nextWeek(day) {
const weekday = accusativeWeekdays[day];
return "'келесі " + weekday + " сағат' p'-де'";
}
const formatRelativeLocale = {
lastWeek: (date, baseDate, options) => {
const day = date.getDay();
if ((0, _index.isSameWeek)(date, baseDate, options)) {
return thisWeek(day);
} else {
return lastWeek(day);
}
},
yesterday: "'кеше сағат' p'-де'",
today: "'бүгін сағат' p'-де'",
tomorrow: "'ертең сағат' p'-де'",
nextWeek: (date, baseDate, options) => {
const day = date.getDay();
if ((0, _index.isSameWeek)(date, baseDate, options)) {
return thisWeek(day);
} else {
return nextWeek(day);
}
},
other: "P",
};
const formatRelative = (token, date, baseDate, options) => {
const format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date, baseDate, options);
}
return format;
};
exports.formatRelative = formatRelative;