38 lines
2.3 KiB
TypeScript
38 lines
2.3 KiB
TypeScript
/* Metro module 8863; source: design/components/Pile/native/GuildIconPile.native.tsx; dependencies: [31, 33, 6819, 8864, 8866, 7599, 8865, 2] */
|
|
function _fun69120(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9048:6, offset: 0x01c695ed, size: 144 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
const value = require(33) /* metro dependency 33 */;
|
|
const env0_3 = value.jsx;
|
|
const env0_4 = value.jsxs;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Pile/native/GuildIconPile.native.tsx');
|
|
exports.GuildIconPile = GuildIconPile;
|
|
}
|
|
|
|
function GuildIconPile({size, totalCount, names, children}) { // fn#69121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9048:237, offset: 0x01c6967d, size: 298 bytes, params: 2, frame: 25
|
|
const Children = env0_2.Children;
|
|
const value2 = Children.count(children);
|
|
const ImageSizes = (require(6819) /* metro dependency 6819: GuildIcon */).ImageSizes;
|
|
const property = ImageSizes[size];
|
|
const Pile = (require(8864) /* metro dependency 8864: PileNative */).Pile;
|
|
const object2 = {};
|
|
const listUtilsModule = require(8866) /* metro dependency 8866: ListUtils */;
|
|
const getListSummaryLabel = listUtilsModule.getListSummaryLabel;
|
|
object2['aria-label'] = Reflect.apply(getListSummaryLabel, listUtilsModule, [names, totalCount]);
|
|
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
|
|
const RoundedRect = CutoutShape.RoundedRect;
|
|
object2.shape = RoundedRect;
|
|
object2.size = property;
|
|
object2.gap = property <= 40 ? 2 : 3;
|
|
object2.depthX = 0.25;
|
|
return (
|
|
<Pile {...object2}>
|
|
{children}
|
|
{totalCount != null && value2 < totalCount && ((PileOverflow) => <PileOverflow size={property} borderRadius={property / 3} value={totalCount - value2} />)((require(8865) /* metro dependency 8865: PileOverflowNative */).PileOverflow)}
|
|
</Pile>
|
|
);
|
|
}
|
|
|