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>
20 lines
709 B
Text
20 lines
709 B
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.CanonicalizeTimeZoneName = CanonicalizeTimeZoneName;
|
|
/**
|
|
* https://tc39.es/ecma402/#sec-canonicalizetimezonename
|
|
* @param tz
|
|
*/
|
|
function CanonicalizeTimeZoneName(tz, _a) {
|
|
var zoneNames = _a.zoneNames, uppercaseLinks = _a.uppercaseLinks;
|
|
var uppercasedTz = tz.toUpperCase();
|
|
var uppercasedZones = zoneNames.reduce(function (all, z) {
|
|
all[z.toUpperCase()] = z;
|
|
return all;
|
|
}, {});
|
|
var ianaTimeZone = uppercaseLinks[uppercasedTz] || uppercasedZones[uppercasedTz];
|
|
if (ianaTimeZone === 'Etc/UTC' || ianaTimeZone === 'Etc/GMT') {
|
|
return 'UTC';
|
|
}
|
|
return ianaTimeZone;
|
|
}
|