Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
36 lines
1.4 KiB
TypeScript
36 lines
1.4 KiB
TypeScript
// Module ID: 14254
|
|
// Function ID: 14255
|
|
// Name: AvatarDuoPile
|
|
// Dependencies: [19, 21, 11072, 12689, 8884, 12, 13098, 2]
|
|
// Exports: AvatarDuoPile
|
|
|
|
// Module 14254 (AvatarDuoPile)
|
|
import ClipView from "ClipView" /* 8884 */;
|
|
import Pile from "Pile" /* 11072 */;
|
|
import CutoutableAvatarImage from "CutoutableAvatarImage" /* 13098 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
let size = fn(2);
|
|
const result = size.fileFinishedImporting("design/components/Pile/native/AvatarDuoPile.native.tsx");
|
|
|
|
export const AvatarDuoPile = function AvatarDuoPile(size) {
|
|
size = size.size;
|
|
const merged = Object.assign(size, Object.assign({ size: 0, children: 0 }));
|
|
if ("aria-label" in merged) {
|
|
let prop = merged["aria-label"];
|
|
} else {
|
|
prop = tmp3(12689).getListSummaryLabel(merged.names);
|
|
const tmp3Result = tmp3(12689);
|
|
}
|
|
const obj = { "aria-label": prop, shape: ClipView.CutoutShape.Circle, size: null, gap: 4, depthX: 0.5, depthY: 0.5, children: null };
|
|
if (tmp3Result2.isArray(size)) {
|
|
let mapped = size.map((item) => CutoutableAvatarImage.AVATAR_SIZE_MAP[item]);
|
|
} else {
|
|
mapped = tmp3(13098).AVATAR_SIZE_MAP[size];
|
|
}
|
|
obj.size = mapped;
|
|
obj.children = size.children;
|
|
return jsx(Pile.Pile, { "aria-label": prop, shape: ClipView.CutoutShape.Circle, size: null, gap: 4, depthX: 0.5, depthY: 0.5, children: null });
|
|
};
|