decord/source/utils/ListUtils.tsx
2026-08-13 07:00:46 +00:00

40 lines
1.6 KiB
TypeScript

// Module ID: 12038
// Function ID: 12039
// Name: getListSummaryLabel
// Dependencies: [1236, 2]
// Exports: getListSummaryLabel
// Module 12038 (getListSummaryLabel)
const result = require("set").fileFinishedImporting("utils/ListUtils.tsx");
export const getListSummaryLabel = function getListSummaryLabel(names, length) {
let first = names;
if (length == null) {
length = first.length;
}
if (0 === length) {
return "";
} else if (1 === length) {
const intl4 = require(1236) /* getSystemLocale */.intl;
let obj = { first: null };
first = first[0];
obj[0] = first;
let formatToPlainStringResult = intl4.formatToPlainString(require(1236) /* getSystemLocale */.t["8s9z8P"], obj);
} else if (2 === length) {
const intl3 = require(1236) /* getSystemLocale */.intl;
obj = { first: null, second: null };
[obj3[0], obj3[1]] = first;
formatToPlainStringResult = intl3.formatToPlainString(require(1236) /* getSystemLocale */.t["i0K/dw"], obj);
} else if (3 === length) {
const intl2 = require(1236) /* getSystemLocale */.intl;
[obj2[0], obj2[1], obj2[2]] = first;
formatToPlainStringResult = intl2.formatToPlainString(require(1236) /* getSystemLocale */.t["/KSOKY"], { first: null, second: null, third: null });
const obj1 = { first: null, second: null, third: null };
} else {
const intl = require(1236) /* getSystemLocale */.intl;
obj = { first: null, second: null, third: null, count: null };
[obj[0], obj[1], obj[2]] = first;
obj[3] = length - 3;
formatToPlainStringResult = intl.formatToPlainString(require(1236) /* getSystemLocale */.t.xpU76u, obj);
}
};