30 lines
934 B
JavaScript
30 lines
934 B
JavaScript
// Module ID: 13713
|
|
// Function ID: 13714
|
|
// Name: getSupportedCalendars
|
|
// Dependencies: [13634, 13714]
|
|
|
|
// Module 13713 (getSupportedCalendars)
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
arg5.getSupportedCalendars = function getSupportedCalendars(locale) {
|
|
const _require = locale;
|
|
const calendars = _require(13714).calendars;
|
|
return calendars.filter((arg0) => (function isSupportedCalendar(arg0, closure_0) {
|
|
let str = closure_0;
|
|
if (undefined === closure_0) {
|
|
str = "en";
|
|
}
|
|
try {
|
|
const concat = "".concat;
|
|
const combined = "".concat(str, "-u-ca-");
|
|
const memoizedDateTimeFormat = callback(table[0]).createMemoizedDateTimeFormat(combined.concat(arg0));
|
|
if ("gregory" === arg0) {
|
|
if ("gregory" === memoizedDateTimeFormat.resolvedOptions().calendar) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
} catch (err) {
|
|
}
|
|
})(arg0, closure_0));
|
|
};
|