This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,45 +1,52 @@
/* 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});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Pile/native/AvatarDuoPile.native.tsx');
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 = (require(8864) /* metro dependency 8864: PileNative */).Pile;
const object2 = {'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;
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>
);
}
object2['aria-label'] = r6;
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
const Circle = CutoutShape.Circle;
object2.shape = Circle;
value = require(22) /* metro dependency 22 */;
object2.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 {...object2}>
{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] */;
@@ -1,37 +1,42 @@
/* Metro module 10251; source: design/components/Pile/native/AvatarPile.native.tsx; dependencies: [31, 33, 10252, 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 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 */
import * as CutoutableAvatarImageModule from '../../../void/CutoutableAvatarImage/native/CutoutableAvatarImage.tsx'; /* Metro dependency 10252 */
function _fun79617(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10437:6, offset: 0x01e5a2f6, 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/AvatarPile.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('design/components/Pile/native/AvatarPile.native.tsx');
exports.AvatarPile = AvatarPile;
function AvatarPile({size, totalCount, names, children}) { // fn#79618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10437:231, offset: 0x01e5a386, size: 295 bytes, params: 2, frame: 25
const Children = ReactModule.Children;
const value2 = Children.count(children);
const AVATAR_SIZE_MAP = (CutoutableAvatarImageModule).AVATAR_SIZE_MAP;
const property = AVATAR_SIZE_MAP[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 Circle = CutoutShape.Circle;
object.shape = Circle;
object.size = property;
object.gap = property <= 40 ? 2 : 3;
object.depthX = 0.4;
return (
<Pile {...object}>
{children}
{totalCount != null && value2 < totalCount && ((PileOverflow) => <PileOverflow size={property} borderRadius={property / 2} value={totalCount - value2} />)((require(8865) /* metro dependency 8865: PileOverflowNative */).PileOverflow)}
</Pile>
);
}
}
function AvatarPile({size, totalCount, names, children}) { // fn#79618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10437:231, offset: 0x01e5a386, size: 295 bytes, params: 2, frame: 25
const Children = env0_2.Children;
const value2 = Children.count(children);
const AVATAR_SIZE_MAP = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AVATAR_SIZE_MAP;
const property = AVATAR_SIZE_MAP[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 Circle = CutoutShape.Circle;
object2.shape = Circle;
object2.size = property;
object2.gap = property <= 40 ? 2 : 3;
object2.depthX = 0.4;
return (
<Pile {...object2}>
{children}
{totalCount != null && value2 < totalCount && ((PileOverflow) => <PileOverflow size={property} borderRadius={property / 2} value={totalCount - value2} />)((require(8865) /* metro dependency 8865: PileOverflowNative */).PileOverflow)}
</Pile>
);
}
global.__d(_fun79617, 10251, [31, 33, 10252, 8864, 8866, 7599, 8865,
2]) /* metro module 10251, dependencies: [31, 33, 10252, 8864, 8866, 7599, 8865, 2] */;
@@ -1,37 +1,42 @@
/* 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});
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');
(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>
);
}
}
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>
);
}
global.__d(_fun69120, 8863, [31, 33, 6819, 8864, 8866, 7599, 8865,
2]) /* metro module 8863, dependencies: [31, 33, 6819, 8864, 8866, 7599, 8865, 2] */;
@@ -1,139 +1,145 @@
/* Metro module 8864; source: design/components/Pile/native/Pile.native.tsx; dependencies: [31, 27, 33, 4501, 1360, 22, 7599, 8865, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00022Module from '../../../../by-id/module-00022.js'; /* Metro dependency 22 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 GlobalUtilsModule from '../../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as CreateStylesModule from '../../Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun69122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9049:6, offset: 0x01c697a7, size: 206 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({pile: {flexDirection: 'row'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Pile/native/Pile.native.tsx');
const env0_6 = (CreateStylesModule).createStyles({pile: {flexDirection: 'row'}});
(FileImportTrackerModule).fileFinishedImporting('design/components/Pile/native/Pile.native.tsx');
exports.Pile = Pile;
}
function Pile(a0) { // fn#69123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9049:274, offset: 0x01c69875, size: 284 bytes, params: 2, frame: 21
const property = a0['aria-label'];
const env0_0 = a0.shape;
const size = a0.size;
const env0_2 = a0.gap;
const env0_3 = a0.depthX;
const env0_4 = a0.depthY;
const children = a0.children;
const styles = useStyles();
let Children = env0_3.Children;
const value2 = Children.toArray(children);
const length = value2.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish).length;
const moduleValue = require(22) /* metro dependency 22 */;
if (moduleValue.isArray(size)) {
if (size.length !== length) {
throw new global.Error('Pile: size array must have the same number of elements as children');
}
}
Children = env0_3.Children;
return (
<View
style={styles.pile}
accessible
{...{['aria-label']: property}}
>
{Children.map(children, _fun69124)}
</View>
);
}
function _fun69124(a0, a1) { // fn#69124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9049:629, offset: 0x01c69991, size: 819 bytes, params: 3, frame: 24
var r10;
var r7;
var r5;
var r11;
var r12;
var r1;
var r8;
var value3;
var sizeBinding;
var isArray2;
var moduleValue2;
var isArray3;
var shapeBinding;
var moduleValue3;
var object2;
var gapBinding;
var value13;
var moduleValue4;
var isArray4;
var items2;
let value = a0;
const binding = env1_3;
if (binding.isValidElement(value)) {
value3 = undefined;
isArray2 = (require(22) /* metro dependency 22 */).isArray(size);
sizeBinding = size;
r10 = isArray2 ? sizeBinding[a1] : sizeBinding;
if (a1 < length - 1) {
moduleValue2 = require(22) /* metro dependency 22 */;
isArray3 = moduleValue2.isArray(size);
sizeBinding = size;
r7 = isArray3 ? sizeBinding[a1 + 1] : sizeBinding;
shapeBinding = shape;
if ((require(7599) /* metro dependency 7599: ClipView */).CutoutShape.Circle === shapeBinding) {
object2 = {};
object2.shape = shape;
r5 = depthX == null ? -gap : r10 * (1 - depthX);
object2.x = r5;
r5 = depthY == null ? -gap : r10 * (1 - depthY);
object2.y = r5;
object2.size = r7 + 2 * gap;
r11 = object2;
} else if ((require(7599) /* metro dependency 7599: ClipView */).CutoutShape.RoundedRect === shapeBinding) {
object2 = {};
object2.shape = shape;
r5 = depthX == null ? -gap : r10 * (1 - depthX);
object2.x = r5;
r5 = depthY == null ? -gap : r10 * (1 - depthY);
object2.y = r5;
gapBinding = gap;
object2.width = r7 + 2 * gapBinding;
object2.height = r7 + 2 * gapBinding;
object2.cornerRadius = r7 / 3 + gapBinding;
r11 = object2;
} else {
moduleValue3 = require(1360) /* metro dependency 1360: GlobalUtils */;
moduleValue3.assertNever(shape);
r11 = value3;
function Pile(a0) { // fn#69123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9049:274, offset: 0x01c69875, size: 284 bytes, params: 2, frame: 21
const property = a0['aria-label'];
const env0_0 = a0.shape;
const size = a0.size;
const env0_2 = a0.gap;
const depthX = a0.depthX;
const env0_4 = a0.depthY;
const children = a0.children;
const styles = useStyles();
let Children = depthX.Children;
const value2 = Children.toArray(children);
const length = value2.filter((GlobalUtilsModule).isNotNullish).length;
if (Module00022Module.isArray(size)) {
if (size.length !== length) {
throw new global.Error('Pile: size array must have the same number of elements as children');
}
} else {
r11 = value3;
}
value13 = 0;
if (a1 > value13) {
moduleValue4 = require(22) /* metro dependency 22 */;
isArray4 = moduleValue4.isArray(size);
sizeBinding = size;
r12 = isArray4 ? sizeBinding[a1 - 1] : sizeBinding;
r1 = depthX == null ? -r12 : -r12 * depthX + gap;
r5 = depthY == null ? value13 : a1 * (r12 - r12 * depthY + gap);
r8 = r1;
} else {
r5 = value13;
r8 = value13;
}
object2 = {};
items2 = [{height: r10, marginLeft: r8, marginTop: r5}];
r7 = value.type === (require(8865) /* metro dependency 8865: PileOverflowNative */).PileOverflow ? {minWidth: r10} : {width: r10};
items2[1] = r7;
object2.style = items2;
if (r11 == null) {
r5 = value;
} else {
value = ((Component) => <Component cutouts={[r11]}>{value}</Component>)(importDefault(7599) /* metro dependency 7599: ClipView */);
r5 = value;
}
Children = depthX.Children;
return (
<View {...object2} key={a1}>
{r5}
<View
style={styles.pile}
accessible
{...{['aria-label']: property}}
>
{Children.map(children, _fun69124)}
</View>
);
function _fun69124(a0, a1) { // fn#69124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9049:629, offset: 0x01c69991, size: 819 bytes, params: 3, frame: 24
var r10;
var r7;
var r5;
var r11;
var r12;
var r1;
var r8;
var value3;
var sizeBinding;
var isArray2;
var moduleValue2;
var isArray3;
var shapeBinding;
var moduleValue3;
var object;
var gapBinding;
var value13;
var moduleValue4;
var isArray4;
var items2;
let value = a0;
const binding = env1_3;
if (binding.isValidElement(value)) {
value3 = undefined;
isArray2 = (require(22) /* metro dependency 22 */).isArray(size);
sizeBinding = size;
r10 = isArray2 ? sizeBinding[a1] : sizeBinding;
if (a1 < length - 1) {
moduleValue2 = require(22) /* metro dependency 22 */;
isArray3 = moduleValue2.isArray(size);
sizeBinding = size;
r7 = isArray3 ? sizeBinding[a1 + 1] : sizeBinding;
shapeBinding = shape;
if ((require(7599) /* metro dependency 7599: ClipView */).CutoutShape.Circle === shapeBinding) {
object = {};
object.shape = shape;
r5 = depthX == null ? -gap : r10 * (1 - depthX);
object.x = r5;
r5 = depthY == null ? -gap : r10 * (1 - depthY);
object.y = r5;
object.size = r7 + 2 * gap;
r11 = object;
} else if ((require(7599) /* metro dependency 7599: ClipView */).CutoutShape.RoundedRect === shapeBinding) {
object = {};
object.shape = shape;
r5 = depthX == null ? -gap : r10 * (1 - depthX);
object.x = r5;
r5 = depthY == null ? -gap : r10 * (1 - depthY);
object.y = r5;
gapBinding = gap;
object.width = r7 + 2 * gapBinding;
object.height = r7 + 2 * gapBinding;
object.cornerRadius = r7 / 3 + gapBinding;
r11 = object;
} else {
moduleValue3 = require(1360) /* metro dependency 1360: GlobalUtils */;
moduleValue3.assertNever(shape);
r11 = value3;
}
} else {
r11 = value3;
}
value13 = 0;
if (a1 > value13) {
moduleValue4 = require(22) /* metro dependency 22 */;
isArray4 = moduleValue4.isArray(size);
sizeBinding = size;
r12 = isArray4 ? sizeBinding[a1 - 1] : sizeBinding;
r1 = depthX == null ? -r12 : -r12 * depthX + gap;
r5 = depthY == null ? value13 : a1 * (r12 - r12 * depthY + gap);
r8 = r1;
} else {
r5 = value13;
r8 = value13;
}
object = {};
items2 = [{height: r10, marginLeft: r8, marginTop: r5}];
r7 = value.type === (require(8865) /* metro dependency 8865: PileOverflowNative */).PileOverflow ? {minWidth: r10} : {width: r10};
items2[1] = r7;
object.style = items2;
if (r11 == null) {
r5 = value;
} else {
value = ((Component) => <Component cutouts={[r11]}>{value}</Component>)(importDefault(7599) /* metro dependency 7599: ClipView */);
r5 = value;
}
return (
<View {...object} key={a1}>
{r5}
</View>
);
}
return null;
}
}
return null;
}
global.__d(_fun69122, 8864, [31, 27, 33, 4501, 1360, 22, 7599, 8865,
2]) /* metro module 8864, dependencies: [31, 27, 33, 4501, 1360, 22, 7599, 8865, 2] */;
@@ -1,48 +1,56 @@
/* Metro module 8865; source: design/components/Pile/native/PileOverflow.native.tsx; dependencies: [31, 27, 1949, 33, 4501, 697, 632, 4573, 1856, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import LocaleStore from '../../../../modules/user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 TextModule from '../../Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun69125(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9050:6, offset: 0x01c69cc4, size: 372 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsxs;
const env0_5 = value.jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
const BACKGROUND_MOD_STRONG = (Native).colors.BACKGROUND_MOD_STRONG;
const env0_6 = Reflect.apply(createStyles, value, [{container: {'alignItems': 'center', 'justifyContent': 'center',
'backgroundColor': null, 'flexShrink': 0, backgroundColor: BACKGROUND_MOD_STRONG}}]);
const Map = global.Map;
const map = new Map([[64, 'text-lg/semibold'], [48, 'text-md/semibold'], [40, 'text-md/semibold'], [30,
'text-sm/semibold'], [24, 'text-xs/semibold'], [16, 'text-xxs/semibold']]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Pile/native/PileOverflow.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('design/components/Pile/native/PileOverflow.native.tsx');
exports.PileOverflow = PileOverflow;
function PileOverflow({size, borderRadius, value}) { // fn#69126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9050:564, offset: 0x01c69e38, size: 294 bytes, params: 2, frame: 22
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
function() {
return LocaleStore.locale;
});
const styles = useStyles();
const items2 = [styles.container];
items2[1] = {borderRadius: borderRadius, minWidth: size, height: size, paddingHorizontal: size >= 32 ? 8 : 4};
const Text = (TextModule).Text;
const r8 = env0_7.get(size) ?? 'text-md/semibold';
value = (require(1856) /* metro dependency 1856: NumberUtils */).humanizeValue(value, locale);
return (
<View style={items2}>
<Text
lineClamp={1}
maxFontSizeMultiplier={2}
variant={r8}
>
{'+'}
{value}
</Text>
</View>
);
}
}
function PileOverflow({size, borderRadius, value}) { // fn#69126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9050:564, offset: 0x01c69e38, size: 294 bytes, params: 2, frame: 22
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
function() {
return LocaleStore.locale;
});
const styles = useStyles();
const items2 = [styles.container];
items2[1] = {borderRadius: borderRadius, minWidth: size, height: size, paddingHorizontal: size >= 32 ? 8 : 4};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const r8 = env0_7.get(size) ?? 'text-md/semibold';
value = (require(1856) /* metro dependency 1856: NumberUtils */).humanizeValue(value, locale);
return (
<View style={items2}>
<Text
lineClamp={1}
maxFontSizeMultiplier={2}
variant={r8}
>
{'+'}
{value}
</Text>
</View>
);
}
global.__d(_fun69125, 8865, [31, 27, 1949, 33, 4501, 697, 632, 4573, 1856,
2]) /* metro module 8865, dependencies: [31, 27, 1949, 33, 4501, 697, 632, 4573, 1856, 2] */;