decord/source/design/components/Pile/native/AvatarPile.native.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

42 lines
1.5 KiB
TypeScript

// Module ID: 13097
// Function ID: 13098
// Name: AvatarPile
// Dependencies: [19, 21, 13098, 11072, 12689, 8884, 11073, 2]
// Exports: AvatarPile
// Module 13097 (AvatarPile)
import ClipView from "ClipView" /* 8884 */;
import Pile from "Pile" /* 11072 */;
import PileOverflow from "PileOverflow" /* 11073 */;
import ListUtils from "ListUtils" /* 12689 */;
import CutoutableAvatarImage from "CutoutableAvatarImage" /* 13098 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Pile/native/AvatarPile.native.tsx");
export const AvatarPile = function AvatarPile(arg0) {
({ totalCount, children } = arg0);
const Children = noop.Children;
({ size, names } = arg0);
const countResult = Children.count(children);
const tmp4 = CutoutableAvatarImage.AVATAR_SIZE_MAP[size];
const obj = { "aria-label": ListUtils.getListSummaryLabel(names, totalCount), shape: ClipView.CutoutShape.Circle, size: tmp4, gap: null, depthX: 0.4, children: null };
let num = 3;
if (tmp4 <= 40) {
num = 2;
}
obj.gap = num;
const items = [children, ];
let tmp6 = null != totalCount && countResult < totalCount;
if (tmp6) {
const obj3 = { size: tmp4, borderRadius: tmp4 / 2, value: totalCount - countResult };
tmp6 = React3(PileOverflow.PileOverflow, obj3);
}
items[1] = tmp6;
obj.children = items;
return React4(Pile.Pile, obj);
};