decord/source/lib/intlFormatDate.tsx

51 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 3821
2026-07-27 11:26:19 +00:00
// Function ID: 31750
2026-07-20 16:05:17 +00:00
// Name: makeIntlFormatter
2026-07-25 08:10:48 +00:00
// Dependencies: [1922, 3818, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: makeFormatter
2026-07-25 08:10:48 +00:00
// Module 3821 (makeIntlFormatter)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
2026-07-20 16:05:17 +00:00
function makeIntlFormatter(locale, arg1) {
return Intl.DateTimeFormat(locale, arg1).format;
}
2026-07-23 10:11:24 +00:00
const result = require("getSystemLocale").fileFinishedImporting("lib/intlFormatDate.tsx");
2026-07-20 16:05:17 +00:00
export const makeFormatter = function makeFormatter(arg0) {
2026-07-23 10:11:24 +00:00
locale = locale.locale;
let tmp = (function tryMakeNativeFormatter(locale, arg1) {
let closure_0 = locale;
let closure_1 = arg1;
if (null == outer1_0(outer1_1[1]).makeFormatter) {
2026-07-20 16:05:17 +00:00
return null;
} else {
let tmp7 = tmp15;
if (null != str) {
let first;
2026-07-23 10:11:24 +00:00
if (null != outer1_0(outer1_1[2]).systemLocale) {
first = outer1_0(outer1_1[2]).systemLocale.split("-")[0];
const str3 = outer1_0(outer1_1[2]).systemLocale;
2026-07-20 16:05:17 +00:00
}
tmp7 = str.split("-")[0] === first;
}
2026-07-23 10:11:24 +00:00
if (str !== outer1_0(outer1_1[2]).initialLocale) {
2026-07-20 16:05:17 +00:00
const tmp12 = locale;
}
2026-07-23 10:11:24 +00:00
const formatter = outer1_0(outer1_1[1]).makeFormatter(tmp12, arg1);
2026-07-20 16:05:17 +00:00
if (null == formatter) {
return null;
} else {
2026-07-23 10:11:24 +00:00
let c3 = null;
2026-07-20 16:05:17 +00:00
return (arg0) => formatter(arg0);
}
2026-07-23 10:11:24 +00:00
const obj = outer1_0(outer1_1[1]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
})(locale, arg0);
2026-07-20 16:05:17 +00:00
if (null == tmp) {
tmp = makeIntlFormatter(locale, arg0);
}
return tmp;
};