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
847 B
Text
20 lines
847 B
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.IsValidTimeZoneName = IsValidTimeZoneName;
|
|
/**
|
|
* https://tc39.es/ecma402/#sec-isvalidtimezonename
|
|
* @param tz
|
|
* @param implDetails implementation details
|
|
*/
|
|
function IsValidTimeZoneName(tz, _a) {
|
|
var zoneNamesFromData = _a.zoneNamesFromData, uppercaseLinks = _a.uppercaseLinks;
|
|
var uppercasedTz = tz.toUpperCase();
|
|
var zoneNames = new Set();
|
|
var linkNames = new Set();
|
|
zoneNamesFromData.map(function (z) { return z.toUpperCase(); }).forEach(function (z) { return zoneNames.add(z); });
|
|
Object.keys(uppercaseLinks).forEach(function (linkName) {
|
|
linkNames.add(linkName.toUpperCase());
|
|
zoneNames.add(uppercaseLinks[linkName].toUpperCase());
|
|
});
|
|
return zoneNames.has(uppercasedTz) || linkNames.has(uppercasedTz);
|
|
}
|