decord/source/modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx

99 lines
4.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14340
// Function ID: 14341
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterAcceptedLinkRow
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 5302, 21, 4668, 712, 7660, 7659, 11146, 1236, 2336, 4739, 14341, 14343, 5438, 5265, 14346, 2008, 1297, 14348, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14340 (FamilyCenterAcceptedLinkRow)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import messagesProxyDefault from "messagesProxy" /* 2336 */;
import Text from "Text" /* 4739 */;
import useUserIdsForLinkStatus from "useUserIdsForLinkStatus" /* 7659 */;
import useIsInAdultAgeGroupDefault from "useIsInAdultAgeGroup" /* 7660 */;
import useAgeSpecificText from "useAgeSpecificText" /* 11146 */;
import FamilyCenterLinkRowDefault from "FamilyCenterLinkRow" /* 14343 */;
import registerAssetDefault from "registerAsset" /* 14348 */;
import { View } from "get ActivityIndicator" /* 17 */;
import items from "items" /* 5302 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function FamilyCenterAcceptedLinkRow(otherUser) {
let str = otherUser.otherUser;
2026-07-29 08:29:29 +00:00
let tmp4Result = null;
2026-07-20 16:05:17 +00:00
if (undefined !== str) {
2026-07-29 08:29:29 +00:00
let obj = { otherUser: null, actions: null };
obj[0] = str;
const intl = str(1236).intl;
2026-07-20 16:05:17 +00:00
str = undefined;
2026-07-29 08:29:29 +00:00
if (str != null) {
2026-07-20 16:05:17 +00:00
str = str.toString();
}
2026-07-29 08:29:29 +00:00
obj = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, style: null, children: null };
obj = { name: null };
obj[0] = str;
2026-08-24 06:08:38 +00:00
obj[1] = intl.formatToPlainString(messagesProxyDefault.T7DUoU, obj);
2026-07-29 08:29:29 +00:00
obj[2] = function onPress() {
2026-08-24 06:08:38 +00:00
let obj = closure_1_1(closure_1_2[15]);
2026-07-20 16:05:17 +00:00
obj = { otherUser: str };
2026-08-24 06:08:38 +00:00
obj.pushLazy(str(closure_1_2[17])(closure_1_2[16], closure_1_2.paths), obj);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[3] = tmp.actionButton;
2026-08-24 06:08:38 +00:00
obj1 = { size: null, disableColor: true, source: null };
2026-07-29 08:29:29 +00:00
obj1[0] = str(1297).Icon.Sizes.SMALL;
2026-08-24 06:08:38 +00:00
obj1[2] = registerAssetDefault;
2026-07-29 08:29:29 +00:00
obj[4] = closure_6(str(1297).Icon, obj1);
2026-08-24 06:08:38 +00:00
obj[1] = closure_6(str(5438).PressableOpacity, obj);
tmp4Result = tmp4(FamilyCenterLinkRowDefault, obj);
2026-07-29 08:29:29 +00:00
const tmp5 = importDefault;
2026-08-24 06:08:38 +00:00
const tmp7 = FamilyCenterLinkRowDefault;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp4Result;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS: c4, MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS: c5 } = items);
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { container: { marginTop: 24 }, content: null, empty: null, header: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { display: "flex", justifyContent: "center", backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, borderRadius: ThemesDefault.radii.md };
2026-07-29 08:29:29 +00:00
createCacheKey[1] = createCacheKey;
createCacheKey[2] = { padding: 20, alignSelf: "center" };
createCacheKey[3] = { marginBottom: 10 };
2026-08-24 06:08:38 +00:00
let closure_8 = createCacheKey.createStyles(createCacheKey);
let obj1 = { actionButton: { backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH, tintColor: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT, borderRadius: ThemesDefault.radii.round, alignItems: "center", justifyContent: "center", height: 32, width: 32 } };
2026-07-29 08:29:29 +00:00
let closure_9 = createCacheKey.createStyles(obj1);
2026-08-24 06:08:38 +00:00
let obj2 = { backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH, tintColor: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT, borderRadius: ThemesDefault.radii.round, alignItems: "center", justifyContent: "center", height: 32, width: 32 };
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterAcceptedLinks() {
2026-08-24 06:08:38 +00:00
const tmp = callback2();
let obj = useUserIdsForLinkStatus;
2026-07-20 16:05:17 +00:00
const activeLinkUsers = obj.useActiveLinkUsers();
2026-08-24 06:08:38 +00:00
obj = { count: activeLinkUsers.length, max: useIsInAdultAgeGroupDefault() ? closure_4 : closure_5 };
const tmp4 = useIsInAdultAgeGroupDefault();
2026-07-29 08:29:29 +00:00
const intl = tmp5(1236).intl;
2026-08-24 06:08:38 +00:00
const tmp5Result = useAgeSpecificText;
2026-07-29 08:29:29 +00:00
const intl2 = tmp5(1236).intl;
obj = { style: tmp.container, children: null };
2026-08-24 06:08:38 +00:00
const ageSpecificText = tmp5Result.useAgeSpecificText(intl.formatToPlainString(messagesProxyDefault["+tnO34"], obj), intl2.formatToPlainString(tmp2(2336)["pu6/U0"], obj));
const items = [callback(Text.Text, { style: tmp.header, variant: "eyebrow", color: "text-default", children: ageSpecificText }), ];
2026-07-29 08:29:29 +00:00
const obj2 = { style: tmp.content, children: null };
2026-07-20 16:05:17 +00:00
if (0 === activeLinkUsers.length) {
2026-07-29 08:29:29 +00:00
const obj3 = { style: null, children: null };
obj3[0] = tmp.empty;
const obj4 = { text: null };
const intl3 = tmp5(1236).intl;
2026-08-24 06:08:38 +00:00
obj4[0] = intl3.string(tmp2(2336).C4ScLD);
obj3[1] = tmp10(tmp2(14341), obj4);
2026-07-29 08:29:29 +00:00
let mapped = tmp10(tmp9, obj3);
2026-08-24 06:08:38 +00:00
const tmp2Result = tmp2(14341);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
mapped = activeLinkUsers.map((id) => callback(closure_10, { otherUser: id }, "accepted-" + id.id));
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj2[1] = mapped;
2026-07-20 16:05:17 +00:00
items[1] = callback(View, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return closure_7(View, obj);
};