decord/source/modules/people/native/ClearAllIncomingRequestsConfirmation.tsx
2026-08-24 06:08:38 +00:00

121 lines
6.8 KiB
TypeScript

// Module ID: 9782
// Function ID: 9783
// Name: ClearAllIncomingRequestsConfirmationModal
// Dependencies: [32, 19, 17, 21, 4668, 712, 5265, 4096, 1236, 9775, 6840, 8947, 8215, 4739, 4750, 2]
// Exports: default
// Module 9782 (ClearAllIncomingRequestsConfirmationModal)
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
const require = arg1;
({ View: c5, ScrollView: closure_6 } = get_ActivityIndicator);
({ jsx: error, Fragment: closure_8, jsxs: c9 } = jsxProd);
createCacheKey = { root: null, closeButton: null, content: null, container: null, footer: null, header: null, headerText: null, body: null, noticeHeader: null, buttonWrapper: null };
createCacheKey = { display: "flex", flexDirection: "column", backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, height: "100%", paddingTop: ThemesDefault.space.PX_24 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { marginRight: 8, alignSelf: "flex-end" };
createCacheKey[2] = { flexGrow: 1, padding: ThemesDefault.space.PX_16 };
let obj1 = { flexGrow: 1, padding: ThemesDefault.space.PX_16 };
createCacheKey[3] = { display: "flex", flexDirection: "column", height: "100%", marginTop: ThemesDefault.space.PX_24 };
let obj2 = { display: "flex", flexDirection: "column", height: "100%", marginTop: ThemesDefault.space.PX_24 };
createCacheKey[4] = { flexGrow: 0, flexShrink: 1, backgroundColor: ThemesDefault.colors.BORDER_SUBTLE, paddingVertical: ThemesDefault.space.PX_24, paddingHorizontal: ThemesDefault.space.PX_16 };
let obj3 = { flexGrow: 0, flexShrink: 1, backgroundColor: ThemesDefault.colors.BORDER_SUBTLE, paddingVertical: ThemesDefault.space.PX_24, paddingHorizontal: ThemesDefault.space.PX_16 };
createCacheKey[5] = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: ThemesDefault.space.PX_16 };
let obj4 = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: ThemesDefault.space.PX_16 };
createCacheKey[6] = { marginTop: ThemesDefault.space.PX_16, marginBottom: ThemesDefault.space.PX_4 };
let obj5 = { marginTop: ThemesDefault.space.PX_16, marginBottom: ThemesDefault.space.PX_4 };
createCacheKey[7] = { padding: ThemesDefault.space.PX_24, borderRadius: ThemesDefault.radii.md, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
let obj6 = { padding: ThemesDefault.space.PX_24, borderRadius: ThemesDefault.radii.md, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
createCacheKey[8] = { marginBottom: ThemesDefault.space.PX_4 };
let obj7 = { marginBottom: ThemesDefault.space.PX_4 };
createCacheKey[9] = { marginBottom: ThemesDefault.space.PX_4 };
let closure_10 = createCacheKey.createStyles(createCacheKey);
let obj8 = { marginBottom: ThemesDefault.space.PX_4 };
let result = require("set").fileFinishedImporting("modules/people/native/ClearAllIncomingRequestsConfirmation.tsx");
export default function ClearAllIncomingRequestsConfirmationModal(incomingRequestCount) {
let _require;
let callback;
let callback1;
const tmp = callback4();
[tmp3, c0] = callback(React.useState(false), 2);
callback = React.useCallback(() => {
_undefined(false);
let arr = callback(callback1[6]);
arr = arr.pop();
}, []);
callback1 = React.useCallback(() => {
_undefined(false);
const intl = _undefined(callback1[8]).intl;
_undefined(callback1[7]).presentFailedToast(intl.string(_undefined(callback1[8]).t.R0RpRX));
}, []);
const items = [callback, callback1];
const callback2 = React.useCallback(() => {
_undefined(true);
const result = callback(callback1[9]).clearPendingRelationships();
const obj = callback(callback1[9]);
result.then(callback).catch(callback1);
}, items);
let obj = { top: true, children: null };
obj = { style: tmp.root, children: null };
obj = { accessibilityRole: "button", accessibilityLabel: null, source: null, style: null, onPress: null };
const tmp2 = callback(React.useState(false), 2);
let intl = _require(callback1[8]).intl;
obj[1] = intl.string(_require(callback1[8]).t.cpT0Cq);
obj[2] = callback(callback1[12]);
const items1 = [tmp.closeButton];
obj[3] = items1;
obj[4] = function onPress() {
return callback(callback1[6]).pop();
};
const items2 = [callback2(callback(callback1[11]), obj), ];
obj1 = { style: tmp.container, children: null };
const obj2 = { style: tmp.content, children: null };
const obj3 = { children: null };
const obj4 = { style: tmp.header, children: null };
const obj5 = { style: tmp.headerText, variant: "text-lg/bold", children: null };
const intl2 = _require(callback1[8]).intl;
obj5[2] = intl2.string(_require(callback1[8]).t.eVjfAu);
obj4[1] = callback2(_require(callback1[13]).Text, obj5);
const items3 = [callback2(closure_5, obj4), ];
const obj6 = { style: tmp.body, children: null };
const obj7 = { style: tmp.noticeHeader, variant: "text-xs/normal", color: "mobile-text-heading-primary", children: null };
const intl3 = _require(callback1[8]).intl;
obj7[3] = intl3.format(_require(callback1[8]).t.jaXsA3, { incomingRequestCount: incomingRequestCount.incomingPendingRequestCount });
obj6[1] = callback2(_require(callback1[13]).Text, obj7);
items3[1] = callback2(closure_5, obj6);
obj3[0] = items3;
obj2[1] = callback3(closure_8, obj3);
const items4 = [callback2(closure_6, obj2), ];
const obj8 = { style: tmp.footer, children: null };
const obj9 = { bottom: true, children: null };
const obj10 = { children: null };
const obj11 = { style: tmp.buttonWrapper, children: null };
const obj12 = { disabled: tmp3, loading: tmp3, variant: "destructive", size: "md", text: null, onPress: null, grow: true };
const intl4 = _require(callback1[8]).intl;
obj12[4] = intl4.string(_require(callback1[8]).t.Eq9seb);
obj12[5] = callback2;
obj11[1] = callback2(_require(callback1[14]).Button, obj12);
const items5 = [callback2(closure_5, obj11), ];
const obj13 = { style: tmp.buttonWrapper, children: null };
const obj14 = { variant: "secondary", size: "md", text: null, onPress: null, grow: true };
const intl5 = _require(callback1[8]).intl;
obj14[2] = intl5.string(_require(callback1[8]).t["ETE/oC"]);
obj14[3] = callback(callback1[6]).pop;
obj13[1] = callback2(_require(callback1[14]).Button, obj14);
items5[1] = callback2(closure_5, obj13);
obj10[0] = items5;
obj9[1] = callback3(closure_8, obj10);
obj8[1] = callback2(_require(callback1[10]).SafeAreaPaddingView, obj9);
items4[1] = callback2(closure_5, obj8);
obj1[1] = items4;
items2[1] = callback3(closure_5, obj1);
obj[1] = items2;
obj[1] = callback3(closure_5, obj);
return callback2(_require(callback1[10]).SafeAreaPaddingView, obj);
};