decord/source/1930_buildLocalizeFn.js
2026-07-27 11:26:19 +00:00

59 lines
1.6 KiB
JavaScript

// Module ID: 1930
// Function ID: 21805
// Name: buildLocalizeFn
// Dependencies: []
// Exports: default
// Module 1930 (buildLocalizeFn)
export default function buildLocalizeFn(arg0) {
let closure_0 = arg0;
return (arg0, context) => {
let str = "standalone";
if (null != context) {
str = "standalone";
if (context.context) {
const _String = String;
str = String(context.context);
}
}
if ("formatting" === str) {
if (closure_0.formattingValues) {
let defaultWidth2 = closure_0.defaultFormattingWidth;
if (!defaultWidth2) {
defaultWidth2 = closure_0.defaultWidth;
}
let StringResult = defaultWidth2;
if (null != context) {
StringResult = defaultWidth2;
if (context.width) {
const _String3 = String;
StringResult = String(context.width);
}
}
let tmp13 = closure_0.formattingValues[StringResult];
if (!tmp13) {
tmp13 = closure_0.formattingValues[defaultWidth2];
}
let tmp6 = tmp13;
}
let argumentCallbackResult = arg0;
if (closure_0.argumentCallback) {
argumentCallbackResult = closure_0.argumentCallback(arg0);
}
return tmp6[argumentCallbackResult];
}
if (null != context) {
if (context.width) {
const _String2 = String;
let defaultWidth = String(context.width);
}
tmp6 = closure_0.values[defaultWidth];
if (!tmp6) {
tmp6 = closure_0.values[tmp3];
}
}
defaultWidth = closure_0.defaultWidth;
};
};
export default exports.default;