decord/source/3560_intlFormat.js

41 lines
823 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 3560
// Function ID: 3561
2026-07-20 16:05:17 +00:00
// Name: intlFormat
2026-07-29 08:29:29 +00:00
// Dependencies: [3269]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 3560 (intlFormat)
2026-07-23 10:11:24 +00:00
import requiredArgs from "requiredArgs";
if (!requiredArgs) {
2026-07-29 08:29:29 +00:00
const obj = { default: null };
obj[0] = requiredArgs;
2026-07-20 16:05:17 +00:00
let tmp3 = obj;
} else {
2026-07-23 10:11:24 +00:00
tmp3 = requiredArgs;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let c0 = tmp3;
2026-07-20 16:05:17 +00:00
export default function intlFormat(arg0, arg1, arg2) {
tmp3.default(1, arguments);
let tmp2 = undefined !== arg1;
if (tmp2) {
tmp2 = !("locale" in arg1);
}
2026-07-29 08:29:29 +00:00
tmp3 = undefined;
let tmp4 = arg1;
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-07-29 08:29:29 +00:00
tmp4 = arg2;
tmp3 = arg1;
2026-07-20 16:05:17 +00:00
}
let locale;
2026-07-29 08:29:29 +00:00
if (null !== tmp4) {
if (undefined !== tmp4) {
locale = tmp4.locale;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const dateTimeFormat = new Intl.DateTimeFormat(locale, tmp3);
2026-07-20 16:05:17 +00:00
return dateTimeFormat.format(arg0);
};
export default exports.default;