decord/source/modules/parent_tools/native/FamilyCenterModalCancel.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

100 lines
4.4 KiB
TypeScript

// Module ID: 15016
// Function ID: 15017
// Name: FamilyCenterModalCancel
// Dependencies: [19, 17, 21, 4636, 576, 8769, 4839, 4334, 1114, 12046, 38, 8539, 8540, 15011, 7095, 4632, 2396, 14981, 12056, 5514, 5056, 5705, 12058, 2]
// Exports: default
// Module 15016 (FamilyCenterModalCancel)
import nativeDefault from "native" /* 576 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4839 */;
import NavigatorHeader from "NavigatorHeader" /* 5705 */;
import noop from "module_19" /* 19 */;
require = fn;
function FamilyCenterModalCancelScreen(otherUser) {
otherUser = otherUser.otherUser;
let cancelLinkRequest;
const tmp = closure_7();
const callback = noop.useCallback(() => {
cancelLinkRequest(4839).pop();
}, []);
const callback1 = noop.useCallback(() => {
const intl = otherUser(1114).intl;
otherUser(4334).presentFailedToast(intl.string(otherUser(1114).t.R0RpRX));
}, []);
const tmp2 = cancelLinkRequest(8769)();
const familyCenterActions = otherUser(12046).useFamilyCenterActions({ onSuccess: callback, onError: callback1 });
cancelLinkRequest = familyCenterActions.cancelLinkRequest;
const isCancelLoading = familyCenterActions.isCancelLoading;
const items = [cancelLinkRequest, otherUser.id];
const callback2 = noop.useCallback(() => {
cancelLinkRequest(otherUser.id);
}, items);
cancelLinkRequest(38)(tmp2, "FamilyCenterCancelModal should only be rendered for parents.");
const obj2 = { children: null };
const obj3 = { children: null };
const obj4 = { style: tmp.header, children: null };
const obj5 = { otherUser, iconSrc: null };
const obj = otherUser(12046);
obj5.iconSrc = cancelLinkRequest(7095);
const items1 = [closure_5(cancelLinkRequest(15011), obj5), , ];
const obj6 = { style: tmp.headerText, variant: "text-lg/bold", children: null };
let intl = otherUser(1114).intl;
obj6.children = intl.string(cancelLinkRequest(2396).HynllX);
items1[1] = closure_5(otherUser(4632).Text, obj6);
items1[2] = closure_5(cancelLinkRequest(14981), { user: otherUser });
obj4.children = items1;
obj3.children = closure_6(View, obj4);
const items2 = [closure_5(otherUser(8540).ModalContent, obj3), ];
const obj7 = { children: null };
const obj8 = { children: null };
const obj9 = { variant: "destructive", disabled: isCancelLoading, loading: isCancelLoading, text: null, onPress: null };
const intl2 = otherUser(1114).intl;
obj9.text = intl2.string(cancelLinkRequest(2396).mK40bk);
obj9.onPress = callback2;
const items3 = [closure_5(otherUser(5056).Button, obj9), ];
const obj10 = { variant: "tertiary", text: null, onPress: null };
const intl3 = otherUser(1114).intl;
obj10.text = intl3.string(cancelLinkRequest(2396).czincX);
obj10.onPress = cancelLinkRequest(4839).pop;
items3[1] = closure_5(otherUser(5056).Button, obj10);
obj8.children = items3;
obj7.children = closure_6(otherUser(5514).ButtonGroup, obj8);
items2[1] = closure_5(otherUser(12056).ModalFooter, obj7);
obj2.children = items2;
return closure_6(otherUser(8539).ModalScreen, obj2);
}
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const createStyles = fn(4636);
let obj2 = { header: { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: nativeDefault.space.PX_16 }, headerText: null };
let obj3 = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: nativeDefault.space.PX_16 };
obj2.headerText = { marginTop: nativeDefault.space.PX_16, marginBottom: nativeDefault.space.PX_4 };
let closure_7 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/parent_tools/native/FamilyCenterModalCancel.tsx");
export default function FamilyCenterModalCancel(otherUser) {
otherUser = otherUser.otherUser;
const items = [otherUser];
const memo = noop.useMemo(() => {
const obj = { CANCEL: null };
const obj2 = {
headerShown: true,
headerLeft: NavigatorHeader.getHeaderCloseButton(ModalActionCreatorsDefault.pop),
headerTitle() {
return null;
},
render() {
return closure_2_5(FamilyCenterModalCancelScreen, { otherUser });
}
};
obj.CANCEL = obj2;
return obj;
}, items);
let obj = { initialRouteName: "CANCEL", screens: memo, headerBackTitle: null };
const intl = otherUser(1114).intl;
obj.headerBackTitle = intl.string(otherUser(1114).t["13/7kX"]);
return closure_5(otherUser(12058).Modal, obj);
};