Files
2026-07-28 01:06:53 +03:00

53 lines
2.9 KiB
TypeScript

/* Metro module 12808; source: design/components/Pile/native/AvatarDuoPile.native.tsx; dependencies: [31, 33, 8864, 8866, 7599, 22, 10252, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ClipViewModule from '../../Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
import * as PileNativeModule from './Pile.native.tsx'; /* Metro dependency 8864 */
function _fun97680(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12998:6, offset: 0x0218d26b, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('design/components/Pile/native/AvatarDuoPile.native.tsx');
exports.AvatarDuoPile = AvatarDuoPile;
function AvatarDuoPile(a0) { // fn#97681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12998:222, offset: 0x0218d2ee, size: 282 bytes, params: 2, frame: 21
var r6;
var moduleValue;
const size = a0.size;
const children = a0.children;
let value = Object.create(null);
value.size = 0;
value.children = 0;
value = copyDataProperties({}, a0, value, undefined);
const Pile = (PileNativeModule).Pile;
const object = {'aria-label': null, 'shape': null, 'size': null, 'gap': 4, 'depthX': 0.5, 'depthY': 0.5};
if ('aria-label' in value) {
r6 = value['aria-label'];
} else {
moduleValue = require(8866) /* metro dependency 8866: ListUtils */;
value = moduleValue.getListSummaryLabel(value.names);
r6 = value;
}
object['aria-label'] = r6;
const CutoutShape = (ClipViewModule).CutoutShape;
const Circle = CutoutShape.Circle;
object.shape = Circle;
value = require(22) /* metro dependency 22 */;
object.size = value.isArray(size) ? size.map(function(a0) {
var AVATAR_SIZE_MAP = require(dependencyMap[6]).AVATAR_SIZE_MAP;
return AVATAR_SIZE_MAP[a0];
}) : (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AVATAR_SIZE_MAP[size];
return (
<Pile {...object}>
{children}
</Pile>
);
}
}
global.__d(_fun97680, 12808, [31, 33, 8864, 8866, 7599, 22, 10252,
2]) /* metro module 12808, dependencies: [31, 33, 8864, 8866, 7599, 22, 10252, 2] */;