Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
126 lines
5.9 KiB
TypeScript
126 lines
5.9 KiB
TypeScript
// Module ID: 15040
|
|
// Function ID: 15041
|
|
// Name: FamilyCenterPendingLinks
|
|
// Dependencies: [19, 17, 7648, 21, 4638, 576, 8780, 12062, 1115, 2397, 4634, 8781, 5208, 4841, 15041, 1897, 1177, 9709, 15042, 15039, 15043, 15034, 2]
|
|
// Exports: default
|
|
|
|
// Module 15040 (FamilyCenterPendingLinks)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1115 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
|
|
import _modDef2397 from "module_2397" /* 2397 */;
|
|
import Text_Text from "Text/Text" /* 4634 */;
|
|
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4841 */;
|
|
import useUserLinks from "useUserLinks" /* 8780 */;
|
|
import useIsInAdultAgeGroupDefault from "useIsInAdultAgeGroup" /* 8781 */;
|
|
import useAgeSpecificText from "useAgeSpecificText" /* 12062 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
function FamilyCenterPendingLinkRow(otherUser) {
|
|
const str = otherUser.otherUser;
|
|
const tmp = closure_9();
|
|
str(8780);
|
|
if (undefined === str) {
|
|
return null;
|
|
} else {
|
|
if (tmp4) {
|
|
const intl3 = tmp5(1115).intl;
|
|
let str1;
|
|
if (str != null) {
|
|
str1 = str.toString();
|
|
}
|
|
const obj2 = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, style: null, children: null };
|
|
const obj3 = { name: str1 };
|
|
obj2.accessibilityLabel = intl3.formatToPlainString(tmp2(2397).oUpA6X, obj3);
|
|
obj2.onPress = function onPress() {
|
|
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(15043, dependencyMap.paths), { otherUser: str });
|
|
};
|
|
obj2.style = tmp.actionButton;
|
|
const obj4 = { size: tmp5(1177).Icon.Sizes.SMALL, disableColor: true, source: tmp2(15039) };
|
|
obj2.children = closure_5(tmp5(1177).Icon, obj4);
|
|
let tmp8Result = tmp17(tmp5(5208).PressableOpacity, obj2);
|
|
let tmp14 = tmp17;
|
|
} else {
|
|
let tmp12Result = null;
|
|
if (!tmp7) {
|
|
const intl = tmp5(1115).intl;
|
|
let str2;
|
|
if (str != null) {
|
|
str2 = str.toString();
|
|
}
|
|
const obj = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, style: null, children: null };
|
|
const obj5 = { name: str2 };
|
|
obj.accessibilityLabel = intl.formatToPlainString(tmp2(2397).jc1Ip7, obj5);
|
|
obj.onPress = function onPress() {
|
|
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(15041, dependencyMap.paths), { otherUser: str });
|
|
};
|
|
const items = [, ];
|
|
({ actionButton: arr[0], actionButtonFirst: arr[1] } = tmp);
|
|
obj.style = items;
|
|
const obj6 = { size: tmp5(1177).Icon.Sizes.SMALL, disableColor: true, source: tmp2(9709) };
|
|
obj.children = closure_5(tmp5(1177).Icon, obj6);
|
|
tmp12Result = tmp12(tmp5(5208).PressableOpacity, obj);
|
|
}
|
|
const items1 = [tmp12Result, ];
|
|
tmp14 = closure_5;
|
|
const intl2 = tmp5(1115).intl;
|
|
let str3;
|
|
if (str != null) {
|
|
str3 = str.toString();
|
|
}
|
|
const obj7 = { children: null };
|
|
const obj8 = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, style: null, children: null };
|
|
const obj9 = { name: str3 };
|
|
obj8.accessibilityLabel = intl2.formatToPlainString(tmp2(2397)["4GtllP"], obj9);
|
|
obj8.onPress = function onPress() {
|
|
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(15042, dependencyMap.paths), { otherUser: str });
|
|
};
|
|
obj8.style = tmp.actionButton;
|
|
const obj10 = { size: tmp5(1177).Icon.Sizes.SMALL, disableColor: true, source: tmp2(15039) };
|
|
obj8.children = tmp14(tmp5(1177).Icon, obj10);
|
|
items1[1] = tmp14(tmp5(5208).PressableOpacity, obj8);
|
|
obj7.children = items1;
|
|
tmp8Result = closure_6(closure_7, obj7);
|
|
}
|
|
const obj11 = { otherUser: str, actions: tmp8Result };
|
|
return tmp14(tmp2(15034), obj11);
|
|
}
|
|
tmp4 = useIsInAdultAgeGroupDefault();
|
|
}
|
|
const View = fn(17).View;
|
|
const UserLinkStatus = fn(7648).UserLinkStatus;
|
|
const jsxProd = fn(21);
|
|
({ jsx: hasOwnProperty, jsxs: metroRequire, Fragment: closure_7 } = jsxProd);
|
|
let createStyles = fn(4638);
|
|
let obj2 = { container: { marginTop: 24 }, content: { display: "flex", justifyContent: "center", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, borderRadius: nativeDefault.radii.md }, header: { marginBottom: 10 } };
|
|
let closure_8 = createStyles.createStyles(obj2);
|
|
createStyles = fn(4638);
|
|
let obj5 = { actionButton: null, actionButtonFirst: null };
|
|
let size = { backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH, tintColor: nativeDefault.colors.INTERACTIVE_TEXT_DEFAULT, borderRadius: nativeDefault.radii.round, alignItems: "center", justifyContent: "center", height: 32, width: 32 };
|
|
obj5.actionButton = size;
|
|
let obj3 = { display: "flex", justifyContent: "center", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, borderRadius: nativeDefault.radii.md };
|
|
obj5.actionButtonFirst = { marginRight: nativeDefault.space.PX_8 };
|
|
let closure_9 = createStyles.createStyles(obj5);
|
|
size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/parent_tools/native/FamilyCenterPendingLinks.tsx");
|
|
|
|
export default function FamilyCenterPendingLinks() {
|
|
const tmp = closure_8();
|
|
const usersForLinkStatus = useUserLinks.useUsersForLinkStatus(UserLinkStatus.PENDING);
|
|
useAgeSpecificText;
|
|
const intl = util.intl;
|
|
intl.formatToPlainString(_modDef2397.IkAgkG, { count: usersForLinkStatus.length });
|
|
const intl2 = util.intl;
|
|
let tmp7 = null;
|
|
if (0 !== usersForLinkStatus.length) {
|
|
const obj3 = { style: tmp.container, children: null };
|
|
const obj4 = { style: tmp.header, variant: "eyebrow", color: "text-default", children: tmp6 };
|
|
const items = [hasOwnProperty(Text_Text.Text, obj4), ];
|
|
const obj5 = { style: tmp.content, children: usersForLinkStatus.map((otherUser) => closure_1_5(FamilyCenterPendingLinkRow, { otherUser }, "pending-" + otherUser.id)) };
|
|
items[1] = hasOwnProperty(View, obj5);
|
|
obj3.children = items;
|
|
tmp7 = timestampProducer(View, obj3);
|
|
}
|
|
return tmp7;
|
|
};
|