decord/source/__polyfill/01xxx/module_1157.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

21 lines
1.2 KiB
JavaScript

// Module ID: 1157
// Function ID: 1158
// Dependencies: []
// Exports: resolveFormatConfigOptions
// Module 1157
export const resolveFormatConfigOptions = function resolveFormatConfigOptions(list, format) {
format = undefined;
if (null != format) {
format = format.format;
}
if (typeof format === "string") {
const _Object = Object;
const _Object2 = Object;
return Object.assign(Object.assign({}, list[format.format]), format);
} else {
return format;
}
};
export const 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" } } };