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

116 lines
5.5 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 14247
// Function ID: 14248
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterModalDeclineScreen
2026-08-13 07:00:46 +00:00
// Dependencies: [19, 17, 21, 4342, 712, 7382, 4550, 4061, 1236, 11374, 38, 7852, 7853, 14243, 8072, 4338, 2303, 14213, 11384, 5191, 4755, 5310, 11386, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-13 07:00:46 +00:00
// Module 14247 (FamilyCenterModalDeclineScreen)
2026-07-29 08:29:29 +00:00
import ButtonGroup from "ButtonGroup";
import { View } from "FamilyCenterUsernameHeader";
import jsxProd from "HeaderBackImage";
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-20 16:05:17 +00:00
function FamilyCenterModalDeclineScreen(otherUser) {
otherUser = otherUser.otherUser;
2026-07-29 08:29:29 +00:00
let declineLinkRequest;
const tmp = createCacheKey();
2026-07-20 16:05:17 +00:00
const callback = React.useCallback(() => {
2026-08-13 07:00:46 +00:00
let arr = declineLinkRequest(4550);
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-12 06:57:52 +00:00
otherUser(4061).presentFailedToast(intl.string(otherUser(1236).t.R0RpRX));
2026-07-20 16:05:17 +00:00
}, []);
2026-08-13 07:00:46 +00:00
let obj = otherUser(11374);
2026-07-20 16:05:17 +00:00
const familyCenterActions = obj.useFamilyCenterActions({ onSuccess: callback, onError: callback1 });
2026-07-29 08:29:29 +00:00
declineLinkRequest = familyCenterActions.declineLinkRequest;
2026-07-20 16:05:17 +00:00
const isDeclineLoading = familyCenterActions.isDeclineLoading;
const items = [declineLinkRequest, otherUser.id];
const callback2 = React.useCallback(() => {
declineLinkRequest(otherUser.id);
}, items);
2026-08-13 07:00:46 +00:00
declineLinkRequest(38)(!declineLinkRequest(7382)(), "FamilyCenterDeclineLinkModal should only be rendered for teens.");
2026-07-29 08:29:29 +00:00
obj = { children: null };
obj = { children: null };
const obj1 = { style: tmp.header, children: null };
const obj2 = { otherUser, iconSrc: null };
2026-08-13 07:00:46 +00:00
const tmp2 = declineLinkRequest(7382)();
obj2[1] = declineLinkRequest(8072);
const items1 = [callback(declineLinkRequest(14243), 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-11 06:20:06 +00:00
obj3[2] = intl.string(declineLinkRequest(2303).teIRCR);
2026-08-13 07:00:46 +00:00
items1[1] = callback(otherUser(4338).Text, obj3);
items1[2] = callback(declineLinkRequest(14213), { user: otherUser });
2026-07-29 08:29:29 +00:00
obj1[1] = items1;
2026-07-20 16:05:17 +00:00
const items2 = [callback2(View, obj1), ];
2026-07-29 08:29:29 +00:00
const obj4 = { style: tmp.body, children: null };
const obj5 = { style: tmp.noticeHeader, variant: "eyebrow", color: "mobile-text-heading-primary", children: null };
const intl2 = otherUser(1236).intl;
2026-08-11 06:20:06 +00:00
obj5[3] = intl2.string(declineLinkRequest(2303).cXgKMD);
2026-08-13 07:00:46 +00:00
const items3 = [callback(otherUser(4338).Text, obj5), ];
2026-07-29 08:29:29 +00:00
const obj6 = { variant: "text-sm/normal", color: "text-default", children: null };
const intl3 = otherUser(1236).intl;
2026-08-11 06:20:06 +00:00
obj6[2] = intl3.string(declineLinkRequest(2303).LcM8BS);
2026-08-13 07:00:46 +00:00
items3[1] = callback(otherUser(4338).Text, obj6);
2026-07-29 08:29:29 +00:00
obj4[1] = items3;
2026-07-20 16:05:17 +00:00
items2[1] = callback2(View, obj4);
2026-07-29 08:29:29 +00:00
obj[0] = items2;
2026-08-13 07:00:46 +00:00
const items4 = [callback2(otherUser(7853).ModalContent, obj), ];
2026-07-29 08:29:29 +00:00
const obj7 = { children: null };
const obj8 = { children: null };
const obj9 = { variant: "destructive", disabled: isDeclineLoading, loading: isDeclineLoading, text: null, onPress: null };
const intl4 = otherUser(1236).intl;
2026-08-11 06:20:06 +00:00
obj9[3] = intl4.string(declineLinkRequest(2303).dKxFcn);
2026-07-29 08:29:29 +00:00
obj9[4] = callback2;
2026-08-13 07:00:46 +00:00
const items5 = [callback(otherUser(4755).Button, obj9), ];
2026-07-29 08:29:29 +00:00
const obj10 = { variant: "tertiary", text: null, onPress: null };
const intl5 = otherUser(1236).intl;
obj10[1] = intl5.string(otherUser(1236).t["ETE/oC"]);
2026-08-13 07:00:46 +00:00
obj10[2] = declineLinkRequest(4550).pop;
items5[1] = callback(otherUser(4755).Button, obj10);
2026-07-29 08:29:29 +00:00
obj8[0] = items5;
2026-08-13 07:00:46 +00:00
obj7[0] = callback2(otherUser(5191).ButtonGroup, obj8);
items4[1] = callback(otherUser(11384).ModalFooter, obj7);
2026-07-29 08:29:29 +00:00
obj[0] = items4;
2026-08-13 07:00:46 +00:00
return callback2(otherUser(7852).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, body: null, noticeHeader: null };
createCacheKey = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: require("Themes").space.PX_16 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { marginTop: require("Themes").space.PX_16, marginBottom: require("Themes").space.PX_4 };
let obj1 = { marginTop: require("Themes").space.PX_16, marginBottom: require("Themes").space.PX_4 };
createCacheKey[2] = { padding: require("Themes").space.PX_24, borderRadius: require("Themes").radii.md, backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGH };
let obj2 = { padding: require("Themes").space.PX_24, borderRadius: require("Themes").radii.md, backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGH };
createCacheKey[3] = { marginBottom: require("Themes").space.PX_4 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj3 = { marginBottom: require("Themes").space.PX_4 };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/parent_tools/native/FamilyCenterModalDecline.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterModalDecline(otherUser) {
otherUser = otherUser.otherUser;
const items = [otherUser];
2026-07-29 08:29:29 +00:00
const memo = React.useMemo(() => {
let obj = { DECLINE: null };
obj = { headerShown: true, headerLeft: null, headerTitle: null, render: null };
obj[1] = otherUser(outer1_2[21]).getHeaderCloseButton(outer1_1(outer1_2[6]).pop);
obj[2] = function headerTitle() {
return null;
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[3] = function render() {
return outer1_5(outer1_8, { otherUser: closure_0 });
};
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: "DECLINE", screens: memo, headerBackTitle: null };
const intl = otherUser(1236).intl;
obj[2] = intl.string(otherUser(1236).t["13/7kX"]);
2026-08-13 07:00:46 +00:00
return callback(otherUser(11386).Modal, obj);
2026-07-20 16:05:17 +00:00
};