decord/source/utils/ListUtils.tsx

37 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 11648
// Function ID: 90398
2026-07-20 16:05:17 +00:00
// Name: getListSummaryLabel
2026-07-23 10:11:24 +00:00
// Dependencies: [1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: getListSummaryLabel
2026-07-25 08:10:48 +00:00
// Module 11648 (getListSummaryLabel)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("utils/ListUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getListSummaryLabel = function getListSummaryLabel(names, length) {
if (null == length) {
length = names.length;
}
let num = 0;
if (0 === length) {
return "";
} else if (1 === length) {
const intl4 = require(dependencyMap[num]).intl;
let obj = {};
num = names[num];
obj.first = num;
2026-07-23 10:11:24 +00:00
let formatToPlainStringResult = intl4.formatToPlainString(require(dependencyMap[num]).t["8s9z8P"], obj);
2026-07-20 16:05:17 +00:00
} else if (2 === length) {
const intl3 = require(dependencyMap[num]).intl;
obj = { first: names[num], second: names[1] };
2026-07-23 10:11:24 +00:00
formatToPlainStringResult = intl3.formatToPlainString(require(dependencyMap[num]).t["i0K/dw"], obj);
2026-07-20 16:05:17 +00:00
} else if (3 === length) {
const intl2 = require(dependencyMap[num]).intl;
const obj1 = { first: names[num], second: names[1], third: names[2] };
2026-07-23 10:11:24 +00:00
formatToPlainStringResult = intl2.formatToPlainString(require(dependencyMap[num]).t["/KSOKY"], obj1);
2026-07-20 16:05:17 +00:00
} else {
const intl = require(dependencyMap[num]).intl;
obj = { first: names[num], second: names[1], third: names[2], count: length - 3 };
formatToPlainStringResult = intl.formatToPlainString(require(dependencyMap[num]).t.xpU76u, obj);
}
};