Rocky_Mountain_Vending/.pnpm-store/v10/files/8d/222c94dc2e8a08397d00e4523cdc7a717d79cdefbbc17f45992d414a4a38ee3624e2753fb211d059b4cebe62a4db360037d3e54ad38187ae6212722bf4bb71
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

105 lines
1.8 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "mens duna segonda",
other: "mens de {{count}} segondas",
},
xSeconds: {
one: "1 segonda",
other: "{{count}} segondas",
},
halfAMinute: "30 segondas",
lessThanXMinutes: {
one: "mens duna minuta",
other: "mens de {{count}} minutas",
},
xMinutes: {
one: "1 minuta",
other: "{{count}} minutas",
},
aboutXHours: {
one: "environ 1 ora",
other: "environ {{count}} oras",
},
xHours: {
one: "1 ora",
other: "{{count}} oras",
},
xDays: {
one: "1 jorn",
other: "{{count}} jorns",
},
aboutXWeeks: {
one: "environ 1 setmana",
other: "environ {{count}} setmanas",
},
xWeeks: {
one: "1 setmana",
other: "{{count}} setmanas",
},
aboutXMonths: {
one: "environ 1 mes",
other: "environ {{count}} meses",
},
xMonths: {
one: "1 mes",
other: "{{count}} meses",
},
aboutXYears: {
one: "environ 1 an",
other: "environ {{count}} ans",
},
xYears: {
one: "1 an",
other: "{{count}} ans",
},
overXYears: {
one: "mai dun an",
other: "mai de {{count}} ans",
},
almostXYears: {
one: "gaireben un an",
other: "gaireben {{count}} ans",
},
};
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "daquí " + result;
} else {
return "fa " + result;
}
}
return result;
};
exports.formatDistance = formatDistance;