decord/source/1276_resolveFormatConfigOptions.js
2026-07-29 08:29:29 +00:00

21 lines
1.3 KiB
JavaScript

// Module ID: 1276
// Function ID: 1277
// Name: resolveFormatConfigOptions
// Dependencies: []
// Module 1276 (resolveFormatConfigOptions)
arg5.DEFAULT_FORMAT_CONFIG = undefined;
arg5.resolveFormatConfigOptions = function resolveFormatConfigOptions(list, format) {
format = undefined;
if (null != format) {
format = format.format;
}
if (typeof format === "y") {
const _Object = Object;
const _Object2 = Object;
return Object.assign(Object.assign({}, list[format.format]), format);
} else {
return format;
}
};
arg5.DEFAULT_FORMAT_CONFIG = { duration: {}, list: {}, relativeTime: {}, number: { integer: { maximumFractionDigits: 0 }, currency: { style: "currency" }, percent: { style: "percent" } }, date: { short: { month: "numeric", day: "numeric", year: "2-digit" }, medium: { month: "short", day: "numeric", year: "numeric" }, long: { month: "long", day: "numeric", year: "numeric" }, full: { weekday: "long", month: "long", day: "numeric", year: "numeric" } }, time: { short: { hour: "numeric", minute: "numeric" }, medium: { hour: "numeric", minute: "numeric", second: "numeric" }, long: { hour: "numeric", minute: "numeric", second: "numeric", timeZoneName: "short" }, full: { hour: "numeric", minute: "numeric", second: "numeric", timeZoneName: "short" } } };