2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 13879
|
|
|
|
|
// Function ID: 106215
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: FamilyCenterModalAcceptScreen
|
2026-07-24 07:16:23 +00:00
|
|
|
// Dependencies: [31, 27, 33, 4130, 689, 4337, 3830, 1212, 11088, 7613, 7614, 13876, 4075, 4126, 2198, 13846, 11090, 11098, 4965, 4543, 5087, 11100, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 13879 (FamilyCenterModalAcceptScreen)
|
2026-07-23 10:11:24 +00:00
|
|
|
import result from "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_5;
|
|
|
|
|
let closure_6;
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function FamilyCenterModalAcceptScreen(otherUser) {
|
|
|
|
|
otherUser = otherUser.otherUser;
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp = _createForOfIteratorHelperLoose();
|
2026-07-20 16:05:17 +00:00
|
|
|
const callback = React.useCallback(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
let arr = acceptLinkRequest(outer1_2[5]);
|
2026-07-20 16:05:17 +00:00
|
|
|
arr = arr.pop();
|
|
|
|
|
}, []);
|
|
|
|
|
const callback1 = React.useCallback(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = otherUser(outer1_2[7]).intl;
|
|
|
|
|
otherUser(outer1_2[6]).presentFailedToast(intl.string(otherUser(outer1_2[7]).t.R0RpRX));
|
2026-07-20 16:05:17 +00:00
|
|
|
}, []);
|
2026-07-24 07:16:23 +00:00
|
|
|
let obj = otherUser(11088);
|
2026-07-20 16:05:17 +00:00
|
|
|
const familyCenterActions = obj.useFamilyCenterActions({ onSuccess: callback, onError: callback1 });
|
|
|
|
|
const acceptLinkRequest = familyCenterActions.acceptLinkRequest;
|
|
|
|
|
const isAcceptLoading = familyCenterActions.isAcceptLoading;
|
|
|
|
|
const items = [acceptLinkRequest, otherUser.id];
|
|
|
|
|
const callback2 = React.useCallback(() => {
|
|
|
|
|
acceptLinkRequest(otherUser.id);
|
|
|
|
|
}, items);
|
|
|
|
|
obj = {};
|
|
|
|
|
obj = {};
|
|
|
|
|
const obj1 = { style: tmp.header };
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj2 = { otherUser, iconSrc: acceptLinkRequest(4075), iconStyles: tmp.icon };
|
2026-07-24 07:16:23 +00:00
|
|
|
const items1 = [callback(acceptLinkRequest(13876), obj2), , ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj3 = { style: tmp.headerText, variant: "text-lg/bold" };
|
2026-07-23 10:11:24 +00:00
|
|
|
let intl = otherUser(1212).intl;
|
|
|
|
|
obj3.children = intl.string(acceptLinkRequest(2198).rlNJwZ);
|
|
|
|
|
items1[1] = callback(otherUser(4126).Text, obj3);
|
2026-07-24 07:16:23 +00:00
|
|
|
items1[2] = callback(acceptLinkRequest(13846), { user: otherUser });
|
2026-07-20 16:05:17 +00:00
|
|
|
obj1.children = items1;
|
2026-07-24 07:16:23 +00:00
|
|
|
const items2 = [callback2(View, obj1), callback(acceptLinkRequest(11090), {}), ];
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj4 = { style: tmp.disclaimer, variant: "text-xs/normal", color: "text-default" };
|
|
|
|
|
const intl2 = otherUser(1212).intl;
|
|
|
|
|
obj4.children = intl2.format(acceptLinkRequest(2198).snlFqR, { username: otherUser.username });
|
|
|
|
|
items2[2] = callback(otherUser(4126).Text, obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items2;
|
2026-07-24 07:16:23 +00:00
|
|
|
const items3 = [callback2(otherUser(7614).ModalContent, obj), ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj6 = {};
|
|
|
|
|
const obj7 = {};
|
|
|
|
|
const obj8 = { variant: "primary", disabled: isAcceptLoading, loading: isAcceptLoading };
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl3 = otherUser(1212).intl;
|
|
|
|
|
obj8.text = intl3.string(acceptLinkRequest(2198)["wI/jo3"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj8.onPress = callback2;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items4 = [callback(otherUser(4543).Button, obj8), ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj9 = { variant: "tertiary" };
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl4 = otherUser(1212).intl;
|
|
|
|
|
obj9.text = intl4.string(otherUser(1212).t["ETE/oC"]);
|
|
|
|
|
obj9.onPress = acceptLinkRequest(4337).pop;
|
|
|
|
|
items4[1] = callback(otherUser(4543).Button, obj9);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj7.children = items4;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj6.children = callback2(otherUser(4965).ButtonGroup, obj7);
|
2026-07-24 07:16:23 +00:00
|
|
|
items3[1] = callback(otherUser(11098).ModalFooter, obj6);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items3;
|
2026-07-24 07:16:23 +00:00
|
|
|
return callback2(otherUser(7613).ModalScreen, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
|
|
|
|
|
_createForOfIteratorHelperLoose = {};
|
|
|
|
|
_createForOfIteratorHelperLoose = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: require("_createForOfIteratorHelperLoose").space.PX_16 };
|
|
|
|
|
_createForOfIteratorHelperLoose.header = _createForOfIteratorHelperLoose;
|
|
|
|
|
_createForOfIteratorHelperLoose.headerText = { marginTop: require("_createForOfIteratorHelperLoose").space.PX_16, marginBottom: require("_createForOfIteratorHelperLoose").space.PX_4 };
|
|
|
|
|
let obj1 = { marginTop: require("_createForOfIteratorHelperLoose").space.PX_16, marginBottom: require("_createForOfIteratorHelperLoose").space.PX_4 };
|
|
|
|
|
let items = [{ rotate: "45deg" }];
|
|
|
|
|
_createForOfIteratorHelperLoose.icon = { transform: items, tintColor: require("_createForOfIteratorHelperLoose").colors.INTERACTIVE_TEXT_DEFAULT };
|
|
|
|
|
let obj2 = { transform: items, tintColor: require("_createForOfIteratorHelperLoose").colors.INTERACTIVE_TEXT_DEFAULT };
|
|
|
|
|
_createForOfIteratorHelperLoose.disclaimer = { marginTop: require("_createForOfIteratorHelperLoose").space.PX_12 };
|
|
|
|
|
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
|
|
|
|
|
let obj3 = { marginTop: require("_createForOfIteratorHelperLoose").space.PX_12 };
|
|
|
|
|
const result = require("jsxProd").fileFinishedImporting("modules/parent_tools/native/FamilyCenterModalAccept.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function FamilyCenterModalAccept(otherUser) {
|
|
|
|
|
otherUser = otherUser.otherUser;
|
|
|
|
|
const items = [otherUser];
|
2026-07-23 10:11:24 +00:00
|
|
|
const memo = React.useMemo(() => (function getScreens(otherUser) {
|
|
|
|
|
let closure_0 = otherUser;
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = {};
|
|
|
|
|
obj = {
|
|
|
|
|
headerShown: true,
|
2026-07-23 10:11:24 +00:00
|
|
|
headerLeft: otherUser(outer2_2[20]).getHeaderCloseButton(outer2_1(outer2_2[5]).pop),
|
2026-07-20 16:05:17 +00:00
|
|
|
headerTitle() {
|
|
|
|
|
return null;
|
|
|
|
|
},
|
|
|
|
|
render() {
|
2026-07-23 10:11:24 +00:00
|
|
|
return outer3_5(outer3_8, { otherUser: closure_0 });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
obj.ACCEPT = obj;
|
|
|
|
|
return obj;
|
2026-07-23 10:11:24 +00:00
|
|
|
})(otherUser), items);
|
|
|
|
|
let obj = { initialRouteName: "ACCEPT", screens: memo };
|
|
|
|
|
const intl = otherUser(1212).intl;
|
|
|
|
|
obj.headerBackTitle = intl.string(otherUser(1212).t["13/7kX"]);
|
2026-07-24 07:16:23 +00:00
|
|
|
return callback(otherUser(11100).Modal, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|