decord/source/design/components/Pile/native/PileOverflow.native.tsx

53 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 9932
// Function ID: 9933
2026-07-20 16:05:17 +00:00
// Name: map
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 17, 1946, 21, 4189, 712, 647, 4185, 1851, 2]
2026-07-20 16:05:17 +00:00
// Exports: PileOverflow
2026-07-29 08:29:29 +00:00
// Module 9932 (map)
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import _getSystemLocale from "_getSystemLocale";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsxs: c4, jsx: c5 } = jsxProd);
createCacheKey = { container: null };
createCacheKey = { alignItems: "center", justifyContent: "center", backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG, flexShrink: 0 };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
let items = [[64, "text-lg/semibold"], [48, "text-md/semibold"], [40, "text-md/semibold"], [30, "text-sm/semibold"], [24, "text-xs/semibold"], [16, "text-xxs/semibold"]];
2026-07-20 16:05:17 +00:00
const map = new Map(items);
2026-07-29 08:29:29 +00:00
const result = require("_getSystemLocale").fileFinishedImporting("design/components/Pile/native/PileOverflow.native.tsx");
2026-07-20 16:05:17 +00:00
export const PileOverflow = function PileOverflow(size) {
let borderRadius;
let value;
size = size.size;
({ borderRadius, value } = size);
2026-07-29 08:29:29 +00:00
let obj = require(647) /* defaultAreStatesEqual */;
const items = [_getSystemLocale];
const stateFromStores = obj.useStateFromStores(items, () => locale.locale);
const items1 = [createCacheKey().container, ];
obj = { borderRadius, minWidth: size, height: size, paddingHorizontal: null };
2026-07-20 16:05:17 +00:00
let num = 4;
if (size >= 32) {
num = 8;
}
2026-07-29 08:29:29 +00:00
obj = { style: items1, children: null };
obj[3] = num;
2026-07-20 16:05:17 +00:00
items1[1] = obj;
2026-07-29 08:29:29 +00:00
let str = map.get(size);
if (str == null) {
str = "text-md/semibold";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj1 = { lineClamp: 1, maxFontSizeMultiplier: 2, variant: str, children: null };
const items2 = ["+", require(1851) /* shortenAndLocalizeNumber */.humanizeValue(value, stateFromStores)];
obj1[3] = items2;
obj[1] = closure_4(require(4185) /* Text */.Text, obj1);
2026-07-20 16:05:17 +00:00
return closure_5(View, obj);
};