decord/source/utils/ListUtils.tsx

41 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 12036
// Function ID: 12037
2026-07-20 16:05:17 +00:00
// Name: getListSummaryLabel
2026-07-29 08:29:29 +00:00
// Dependencies: [1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: getListSummaryLabel
2026-08-12 06:57:52 +00:00
// Module 12036 (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) {
2026-07-29 08:29:29 +00:00
let first = names;
if (length == null) {
length = first.length;
2026-07-20 16:05:17 +00:00
}
if (0 === length) {
return "";
} else if (1 === length) {
2026-07-29 08:29:29 +00:00
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);
2026-07-20 16:05:17 +00:00
} else if (2 === length) {
2026-07-29 08:29:29 +00:00
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);
2026-07-20 16:05:17 +00:00
} else if (3 === length) {
2026-07-29 08:29:29 +00:00
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 };
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
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);
2026-07-20 16:05:17 +00:00
}
};