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

94 lines
4.5 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13881
// Function ID: 106309
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterAcceptedLinkRow
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 27, 5766, 33, 4131, 689, 6201, 6200, 11051, 1212, 2199, 4127, 13882, 13884, 4661, 4338, 13887, 1935, 1273, 13889, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 13881 (FamilyCenterAcceptedLinkRow)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import items from "items";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
let closure_4;
let closure_5;
let closure_6;
let closure_7;
const require = arg1;
2026-07-20 16:05:17 +00:00
function FamilyCenterAcceptedLinkRow(otherUser) {
let str = otherUser.otherUser;
let tmp8Result = null;
if (undefined !== str) {
let obj = { otherUser: str };
obj = { accessibilityRole: "button" };
2026-07-23 10:11:24 +00:00
const intl = str(1212).intl;
2026-07-20 16:05:17 +00:00
const obj1 = {};
str = undefined;
if (null != str) {
str = str.toString();
}
obj1.name = str;
2026-07-25 08:10:48 +00:00
obj.accessibilityLabel = intl.formatToPlainString(importDefault(2199).T7DUoU, obj1);
2026-07-20 16:05:17 +00:00
obj.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[15]);
2026-07-20 16:05:17 +00:00
obj = { otherUser: str };
2026-07-23 10:11:24 +00:00
obj.pushLazy(str(outer1_2[17])(outer1_2[16], outer1_2.paths), obj);
2026-07-20 16:05:17 +00:00
};
obj.style = tmp.actionButton;
2026-07-27 11:26:19 +00:00
obj = { size: str(1273).Icon.Sizes.SMALL, disableColor: true, source: importDefault(13889) };
2026-07-23 10:11:24 +00:00
obj.children = callback(str(1273).Icon, obj);
2026-07-25 08:10:48 +00:00
obj.actions = callback(str(4661).PressableOpacity, obj);
2026-07-27 11:26:19 +00:00
tmp8Result = callback(importDefault(13884), obj);
const tmp11 = importDefault(13884);
2026-07-20 16:05:17 +00:00
const tmp12 = callback;
const tmp8 = callback;
}
return tmp8Result;
}
2026-07-23 10:11:24 +00:00
({ MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS: closure_4, MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS: closure_5 } = items);
({ jsx: closure_6, jsxs: closure_7 } = jsxProd);
_createForOfIteratorHelperLoose = { container: { marginTop: 24 } };
_createForOfIteratorHelperLoose = { display: "flex", justifyContent: "center", backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BASE_LOW, borderRadius: require("_createForOfIteratorHelperLoose").radii.md };
_createForOfIteratorHelperLoose.content = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose.empty = { padding: 20, alignSelf: "center" };
_createForOfIteratorHelperLoose.header = { marginBottom: 10 };
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
let obj1 = {};
let obj2 = { backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_SURFACE_HIGH, tintColor: require("_createForOfIteratorHelperLoose").colors.INTERACTIVE_TEXT_DEFAULT, borderRadius: require("_createForOfIteratorHelperLoose").radii.round, alignItems: "center", justifyContent: "center", height: 32, width: 32 };
obj1.actionButton = obj2;
let closure_9 = _createForOfIteratorHelperLoose.createStyles(obj1);
const result = require("items").fileFinishedImporting("modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterAcceptedLinks() {
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
2026-07-25 08:10:48 +00:00
let obj = require(6200) /* useUserIdsForLinkStatus */;
2026-07-20 16:05:17 +00:00
const activeLinkUsers = obj.useActiveLinkUsers();
2026-07-25 08:10:48 +00:00
obj = { count: activeLinkUsers.length, max: importDefault(6201)() ? closure_4 : closure_5 };
2026-07-27 11:26:19 +00:00
let obj2 = require(11051) /* useAgeSpecificText */;
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
const tmp2 = importDefault(6201)();
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { style: tmp.container };
2026-07-25 08:10:48 +00:00
const ageSpecificText = obj2.useAgeSpecificText(intl.formatToPlainString(importDefault(2199)["+tnO34"], obj), intl2.formatToPlainString(importDefault(2199)["pu6/U0"], obj));
2026-07-23 10:11:24 +00:00
const obj1 = { style: tmp.header, variant: "eyebrow", color: "text-default", children: ageSpecificText };
2026-07-25 08:10:48 +00:00
const items = [callback(require(4127) /* Text */.Text, obj1), ];
2026-07-20 16:05:17 +00:00
obj2 = { style: tmp.content };
if (0 === activeLinkUsers.length) {
const obj3 = { style: tmp.empty };
const obj4 = {};
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
obj4.text = intl3.string(importDefault(2199).C4ScLD);
2026-07-27 11:26:19 +00:00
obj3.children = callback(importDefault(13882), obj4);
2026-07-20 16:05:17 +00:00
let mapped = callback(View, obj3);
2026-07-27 11:26:19 +00:00
const tmp14 = importDefault(13882);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
mapped = activeLinkUsers.map((id) => outer1_6(outer1_10, { otherUser: id }, "accepted-" + id.id));
2026-07-20 16:05:17 +00:00
}
obj2.children = mapped;
items[1] = callback(View, obj2);
obj.children = items;
return closure_7(View, obj);
};