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

101 lines
4.3 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14382
// Function ID: 14383
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterModalCancelScreen
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 7481, 4611, 4097, 1236, 11485, 38, 7952, 7953, 14377, 8178, 4376, 2337, 14347, 11495, 5257, 4815, 5376, 11497, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 14382 (FamilyCenterModalCancelScreen)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function FamilyCenterModalCancelScreen(otherUser) {
otherUser = otherUser.otherUser;
2026-07-29 08:29:29 +00:00
let cancelLinkRequest;
2026-08-24 06:08:38 +00:00
const tmp = callback3();
2026-07-20 16:05:17 +00:00
const callback = React.useCallback(() => {
2026-08-25 06:04:03 +00:00
let arr = cancelLinkRequest(4611);
2026-07-20 16:05:17 +00:00
arr = arr.pop();
}, []);
const callback1 = React.useCallback(() => {
2026-07-29 08:29:29 +00:00
const intl = otherUser(1236).intl;
2026-08-25 06:04:03 +00:00
otherUser(4097).presentFailedToast(intl.string(otherUser(1236).t.R0RpRX));
2026-07-20 16:05:17 +00:00
}, []);
2026-08-25 06:04:03 +00:00
let obj = otherUser(11485);
2026-07-20 16:05:17 +00:00
const familyCenterActions = obj.useFamilyCenterActions({ onSuccess: callback, onError: callback1 });
2026-07-29 08:29:29 +00:00
cancelLinkRequest = familyCenterActions.cancelLinkRequest;
2026-07-20 16:05:17 +00:00
const isCancelLoading = familyCenterActions.isCancelLoading;
const items = [cancelLinkRequest, otherUser.id];
const callback2 = React.useCallback(() => {
cancelLinkRequest(otherUser.id);
}, items);
2026-08-25 06:04:03 +00:00
cancelLinkRequest(38)(cancelLinkRequest(7481)(), "FamilyCenterCancelModal should only be rendered for parents.");
2026-07-29 08:29:29 +00:00
obj = { children: null };
obj = { children: null };
2026-08-24 06:08:38 +00:00
obj1 = { style: tmp.header, children: null };
2026-07-29 08:29:29 +00:00
const obj2 = { otherUser, iconSrc: null };
2026-08-25 06:04:03 +00:00
const tmp2 = cancelLinkRequest(7481)();
obj2[1] = cancelLinkRequest(8178);
const items1 = [callback(cancelLinkRequest(14377), obj2), , ];
2026-07-29 08:29:29 +00:00
const obj3 = { style: tmp.headerText, variant: "text-lg/bold", children: null };
let intl = otherUser(1236).intl;
2026-08-25 06:04:03 +00:00
obj3[2] = intl.string(cancelLinkRequest(2337).HynllX);
items1[1] = callback(otherUser(4376).Text, obj3);
items1[2] = callback(cancelLinkRequest(14347), { user: otherUser });
2026-07-29 08:29:29 +00:00
obj1[1] = items1;
obj[0] = callback2(View, obj1);
2026-08-25 06:04:03 +00:00
const items2 = [callback(otherUser(7953).ModalContent, obj), ];
2026-07-29 08:29:29 +00:00
const obj4 = { children: null };
const obj5 = { children: null };
const obj6 = { variant: "destructive", disabled: isCancelLoading, loading: isCancelLoading, text: null, onPress: null };
const intl2 = otherUser(1236).intl;
2026-08-25 06:04:03 +00:00
obj6[3] = intl2.string(cancelLinkRequest(2337).mK40bk);
2026-07-29 08:29:29 +00:00
obj6[4] = callback2;
2026-08-25 06:04:03 +00:00
const items3 = [callback(otherUser(4815).Button, obj6), ];
2026-07-29 08:29:29 +00:00
const obj7 = { variant: "tertiary", text: null, onPress: null };
const intl3 = otherUser(1236).intl;
2026-08-25 06:04:03 +00:00
obj7[1] = intl3.string(cancelLinkRequest(2337).czincX);
obj7[2] = cancelLinkRequest(4611).pop;
items3[1] = callback(otherUser(4815).Button, obj7);
2026-07-29 08:29:29 +00:00
obj5[0] = items3;
2026-08-25 06:04:03 +00:00
obj4[0] = callback2(otherUser(5257).ButtonGroup, obj5);
items2[1] = callback(otherUser(11495).ModalFooter, obj4);
2026-07-29 08:29:29 +00:00
obj[0] = items2;
2026-08-25 06:04:03 +00:00
return callback2(otherUser(7952).ModalScreen, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { header: null, headerText: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { marginTop: ThemesDefault.space.PX_16, marginBottom: ThemesDefault.space.PX_4 };
let closure_7 = createCacheKey.createStyles(createCacheKey);
let obj1 = { marginTop: ThemesDefault.space.PX_16, marginBottom: ThemesDefault.space.PX_4 };
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterModalCancel.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterModalCancel(otherUser) {
otherUser = otherUser.otherUser;
const items = [otherUser];
2026-07-29 08:29:29 +00:00
const memo = React.useMemo(() => {
let obj = { CANCEL: null };
2026-08-24 06:08:38 +00:00
obj = {
headerShown: true,
headerLeft: otherUser(closure_1_2[21]).getHeaderCloseButton(closure_1_1(closure_1_2[6]).pop),
headerTitle() {
return null;
},
render() {
return closure_1_5(closure_1_8, { otherUser: closure_0 });
}
2026-07-29 08:29:29 +00:00
};
obj[0] = obj;
2026-07-20 16:05:17 +00:00
return obj;
2026-07-29 08:29:29 +00:00
}, items);
let obj = { initialRouteName: "CANCEL", screens: memo, headerBackTitle: null };
const intl = otherUser(1236).intl;
obj[2] = intl.string(otherUser(1236).t["13/7kX"]);
2026-08-25 06:04:03 +00:00
return callback(otherUser(11497).Modal, obj);
2026-07-20 16:05:17 +00:00
};