decord/source/design/void/SummarizedIconRow/native/SummarizedIconRow.tsx

139 lines
6.1 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 13415
// Function ID: 13416
2026-07-20 16:05:17 +00:00
// Name: OverflowSquircle
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 17, 21, 4344, 712, 4340, 2]
2026-07-20 16:05:17 +00:00
// Exports: OverflowCircle, OverflowText, OverflowTextSmall, default
2026-08-12 06:57:52 +00:00
// Module 13415 (OverflowSquircle)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function OverflowSquircle(arg0) {
let overflow;
let style;
({ overflow, style } = arg0);
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.overflowSquircleWrap, style];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.overflowSquircle, children: null };
obj = { variant: "text-xs/medium", children: null };
obj[1] = "+" + overflow;
2026-08-12 06:57:52 +00:00
obj[1] = jsx(require(4340) /* Text */.Text, { variant: "text-xs/medium", children: null });
2026-07-29 08:29:29 +00:00
obj[1] = <View variant="text-xs/medium">{null}</View>;
return <View variant="text-xs/medium">{null}</View>;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
createCacheKey = { container: { flexDirection: "row", alignItems: "center" }, iconWrapper: { alignItems: "center", justifyContent: "center" }, overflowSquircleWrap: null, overflowSquircle: null, overflowTextOnly: null, overflowCircleWrap: null, overflowCircle: null };
createCacheKey = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW, borderRadius: require("Themes").radii.md };
createCacheKey[2] = createCacheKey;
createCacheKey[3] = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWEST, margin: 3, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 10 };
let obj1 = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWEST, margin: 3, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 10 };
createCacheKey[4] = { margin: 2, paddingHorizontal: 8, height: 32, alignItems: "center", justifyContent: "center", borderRadius: require("Themes").radii.lg, backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWEST };
let obj2 = { margin: 2, paddingHorizontal: 8, height: 32, alignItems: "center", justifyContent: "center", borderRadius: require("Themes").radii.lg, backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWEST };
createCacheKey[5] = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW, borderRadius: 17 };
const obj3 = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW, borderRadius: 17 };
createCacheKey[6] = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWEST, margin: 2, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 15 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
const obj4 = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWEST, margin: 2, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 15 };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("design/void/SummarizedIconRow/native/SummarizedIconRow.tsx");
2026-07-20 16:05:17 +00:00
export default function SummarizedIconRow(items) {
2026-07-23 10:11:24 +00:00
let OverflowSquircle;
let View;
2026-07-29 08:29:29 +00:00
let createCacheKey;
2026-07-23 10:11:24 +00:00
let jsx;
2026-07-20 16:05:17 +00:00
let overflowComponent;
let style;
items = items.items;
let num = items.max;
if (num === undefined) {
num = 8;
}
2026-07-29 08:29:29 +00:00
({ renderItem: View, offsetAmount: jsx, iconWrapperStyle: createCacheKey, overflowStyle: OverflowSquircle, overflowComponent, style } = items);
2026-07-20 16:05:17 +00:00
if (overflowComponent === undefined) {
overflowComponent = OverflowSquircle;
}
2026-07-23 10:11:24 +00:00
let c7;
2026-07-20 16:05:17 +00:00
let closure_8;
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
2026-07-23 10:11:24 +00:00
c7 = tmp;
2026-07-20 16:05:17 +00:00
closure_8 = Math.max(items.length - num, 0);
2026-07-23 10:11:24 +00:00
let items1 = [tmp.container, style];
2026-07-20 16:05:17 +00:00
return <View style={items1}>{items.map((arg0, arg1) => {
if (arg1 < num) {
if (arg1 === num - 1) {
if (closure_8 > 0) {
2026-07-29 08:29:29 +00:00
let obj = { style: null, overflow: null };
obj = { marginLeft: null };
obj[0] = closure_3;
2026-07-20 16:05:17 +00:00
const items = [obj, closure_5];
2026-07-29 08:29:29 +00:00
obj[0] = items;
obj[1] = tmp2 + 1;
let tmp7 = outer1_3(overflowComponent, obj, arg1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp7;
2026-07-20 16:05:17 +00:00
}
const _Math = Math;
2026-07-29 08:29:29 +00:00
tmp7 = null;
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-07-29 08:29:29 +00:00
let items1 = [_undefined.iconWrapper, closure_4, ];
2026-07-20 16:05:17 +00:00
if (0 !== arg1) {
2026-07-29 08:29:29 +00:00
const obj1 = { marginLeft: null };
obj1[0] = closure_3;
obj = obj1;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = { style: null, children: null };
items1[2] = obj;
obj2[0] = items1;
items1 = callback(arg0, arg1 === tmp6);
obj2[1] = items1;
outer1_3(outer1_2, obj2, arg1);
const tmp8 = outer1_3;
const tmp9 = outer1_2;
2026-07-20 16:05:17 +00:00
}
}
})}</View>;
};
export const OverflowText = function OverflowText(arg0) {
let overflow;
let style;
({ overflow, style } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { style: null, children: null };
const items = [createCacheKey().overflowTextOnly, style];
obj[0] = items;
obj = { variant: "text-xs/medium", children: null };
obj[1] = "+" + overflow;
2026-08-12 06:57:52 +00:00
obj[1] = jsx(require(4340) /* Text */.Text, { variant: "text-xs/medium", children: null });
2026-07-29 08:29:29 +00:00
return <View variant="text-xs/medium">{null}</View>;
2026-07-20 16:05:17 +00:00
};
export const OverflowTextSmall = function OverflowTextSmall(arg0) {
let overflow;
let style;
({ overflow, style } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { style: null, children: null };
const items = [createCacheKey().overflowTextOnly, style];
obj[0] = items;
obj = { variant: "text-xxs/medium", children: null };
obj[1] = "+" + overflow;
2026-08-12 06:57:52 +00:00
obj[1] = jsx(require(4340) /* Text */.Text, { variant: "text-xxs/medium", children: null });
2026-07-29 08:29:29 +00:00
return <View variant="text-xxs/medium">{null}</View>;
2026-07-20 16:05:17 +00:00
};
export const OverflowCircle = function OverflowCircle(arg0) {
let overflow;
let style;
({ overflow, style } = arg0);
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.overflowCircleWrap, style];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.overflowCircle, children: null };
obj = { variant: "text-xs/medium", children: null };
obj[1] = "+" + overflow;
2026-08-12 06:57:52 +00:00
obj[1] = jsx(require(4340) /* Text */.Text, { variant: "text-xs/medium", children: null });
2026-07-29 08:29:29 +00:00
obj[1] = <View variant="text-xs/medium">{null}</View>;
return <View variant="text-xs/medium">{null}</View>;
2026-07-20 16:05:17 +00:00
};