43 lines
2.8 KiB
TypeScript
43 lines
2.8 KiB
TypeScript
/* Metro module 8863; source: design/components/Pile/native/GuildIconPile.native.tsx; dependencies: [31, 33, 6819, 8864, 8866, 7599, 8865, 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 GuildIconModule from '../../../../modules/guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
|
|
import * as ClipViewModule from '../../Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
|
|
import * as PileNativeModule from './Pile.native.tsx'; /* Metro dependency 8864 */
|
|
import * as ListUtilsModule from '../../../../utils/ListUtils.tsx'; /* Metro dependency 8866 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 = ReactModule.Children;
|
|
const value2 = Children.count(children);
|
|
const ImageSizes = (GuildIconModule).ImageSizes;
|
|
const property = ImageSizes[size];
|
|
const Pile = (PileNativeModule).Pile;
|
|
const object = {};
|
|
const getListSummaryLabel = ListUtilsModule.getListSummaryLabel;
|
|
object['aria-label'] = Reflect.apply(getListSummaryLabel, ListUtilsModule, [names, totalCount]);
|
|
const CutoutShape = (ClipViewModule).CutoutShape;
|
|
const RoundedRect = CutoutShape.RoundedRect;
|
|
object.shape = RoundedRect;
|
|
object.size = property;
|
|
object.gap = property <= 40 ? 2 : 3;
|
|
object.depthX = 0.25;
|
|
return (
|
|
<Pile {...object}>
|
|
{children}
|
|
{totalCount != null && value2 < totalCount && ((PileOverflow) => <PileOverflow size={property} borderRadius={property / 3} value={totalCount - value2} />)((require(8865) /* metro dependency 8865: PileOverflowNative */).PileOverflow)}
|
|
</Pile>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun69120, 8863, [31, 33, 6819, 8864, 8866, 7599, 8865,
|
|
2]) /* metro module 8863, dependencies: [31, 33, 6819, 8864, 8866, 7599, 8865, 2] */;
|