decord/source/3501_intlFormat.js

40 lines
802 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 3501
2026-07-24 07:16:23 +00:00
// Function ID: 26931
2026-07-20 16:05:17 +00:00
// Name: intlFormat
2026-07-23 10:11:24 +00:00
// Dependencies: [3210]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 3501 (intlFormat)
import requiredArgs from "requiredArgs";
if (!requiredArgs) {
const obj = { default: 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-23 10:11:24 +00:00
let closure_0 = 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-23 10:11:24 +00:00
tmp3 = arg1;
2026-07-20 16:05:17 +00:00
let tmp4;
if (tmp2) {
tmp3 = arg2;
tmp4 = arg1;
}
let locale;
if (null !== tmp3) {
if (undefined !== tmp3) {
locale = tmp3.locale;
}
}
const dateTimeFormat = new Intl.DateTimeFormat(locale, tmp4);
return dateTimeFormat.format(arg0);
};
export default exports.default;