49 lines
2.7 KiB
TypeScript
49 lines
2.7 KiB
TypeScript
/* Metro module 8865; source: design/components/Pile/native/PileOverflow.native.tsx; dependencies: [31, 27, 1949, 33, 4501, 697, 632, 4573, 1856, 2] */
|
|
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 */;
|
|
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 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');
|
|
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 = (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>
|
|
);
|
|
}
|
|
|