decord/source/modules/webauthn/native/WebAuthnDeleteActionSheet.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

99 lines
4.7 KiB
TypeScript

// Module ID: 14669
// Function ID: 14670
// Name: WebAuthnDeleteActionSheet
// Dependencies: [19, 17, 21, 4560, 576, 4527, 7150, 7149, 1114, 7199, 14670, 4556, 4975, 6597, 4259, 10652, 4520, 9625, 8588, 2]
// Exports: default
// Module 14669 (WebAuthnDeleteActionSheet)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import registerAssetDefault from "registerAsset" /* 14670 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
const require = arg1;
noopAll;
({ Image: c3, View: c4 } = get_ActivityIndicator);
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { content: { alignItems: "center" }, subtitle: null, sheetContent: null, sheetBody: null };
createCacheKey = { textAlign: "center", marginTop: ThemesDefault.space.PX_16 };
createCacheKey[1] = createCacheKey;
createCacheKey[2] = { paddingHorizontal: ThemesDefault.space.PX_16, paddingBottom: ThemesDefault.space.PX_16 };
let obj1 = { paddingHorizontal: ThemesDefault.space.PX_16, paddingBottom: ThemesDefault.space.PX_16 };
createCacheKey[3] = { gap: ThemesDefault.space.PX_16, paddingBottom: ThemesDefault.space.PX_16 };
let closure_7 = createCacheKey.createStyles(createCacheKey);
let obj2 = { gap: ThemesDefault.space.PX_16, paddingBottom: ThemesDefault.space.PX_16 };
let result = require("set").fileFinishedImporting("modules/webauthn/native/WebAuthnDeleteActionSheet.tsx");
export default function WebAuthnDeleteActionSheet(credential) {
credential = credential.credential;
({ deleting, setDeleting: importDefault } = credential);
function handleClose() {
callback(table[5]).hideActionSheet();
}
const tmp = callback3();
let obj = { contentStyles: tmp.sheetContent, bodyStyles: tmp.sheetBody, children: null };
obj = { title: null, trailing: null };
let intl = credential(1114).intl;
obj = { keyName: credential.name };
obj[0] = intl.formatToPlainString(credential(1114).t.mI3CoL, obj);
obj[1] = callback(credential(7199).ActionSheetCloseButton, { onPress: handleClose });
const items = [callback(credential(7149).BottomSheetTitleHeader, obj), , , ];
obj1 = { style: tmp.content, children: null };
const items1 = [callback(closure_3, { source: registerAssetDefault }), ];
const obj3 = { variant: "heading-md/normal", style: tmp.subtitle, children: null };
const intl2 = credential(1114).intl;
obj3[2] = intl2.string(credential(1114).t.IfTbc1);
items1[1] = callback(credential(4556).Text, obj3);
obj1[1] = items1;
items[1] = callback2(closure_4, obj1);
const obj4 = { children: null };
const obj5 = { text: null, onPress: null, variant: "primary", grow: true };
const intl3 = credential(1114).intl;
obj5[0] = intl3.string(credential(1114).t["lqK//z"]);
obj5[1] = handleClose;
obj4[0] = callback(credential(4975).Button, obj5);
items[2] = callback(closure_4, obj4);
const obj6 = { children: null };
const obj7 = { text: null, onPress: null, variant: "destructive", disabled: null, loading: null, grow: true };
const intl4 = credential(1114).intl;
obj7[0] = intl4.string(credential(1114).t.zYOk0f);
obj7[1] = function onPress() {
callback(true);
closure_1_1(closure_1_2[5]).hideActionSheet();
let obj = closure_1_1(closure_1_2[5]);
const result = credential(closure_1_2[13]).deleteWebAuthnCredential(credential);
const obj2 = credential(closure_1_2[13]);
const nextPromise = result.then(() => {
let obj = callback2(4259);
obj = { key: "WEBAUTHN_CREDENTIAL_DELETE_SUCCESS_TOAST_KEY", content: null, icon: null, IconComponent: null, iconColor: "status-positive" };
const intl = callback(1114).intl;
obj[1] = intl.string(callback(1114).t.ZnkeXs);
obj[2] = callback2(10652);
obj[3] = callback(4520).CircleCheckIcon;
obj.open(obj);
});
result.then(() => {
let obj = callback2(4259);
obj = { key: "WEBAUTHN_CREDENTIAL_DELETE_SUCCESS_TOAST_KEY", content: null, icon: null, IconComponent: null, iconColor: "status-positive" };
const intl = callback(1114).intl;
obj[1] = intl.string(callback(1114).t.ZnkeXs);
obj[2] = callback2(10652);
obj[3] = callback(4520).CircleCheckIcon;
obj.open(obj);
}).catch((content) => {
let obj = callback2(4259);
obj = { key: "WEBAUTHN_CREDENTIAL_DELETE_ERROR_TOAST_KEY", content: content.message, icon: callback2(9625), IconComponent: callback(8588).WarningIcon, iconColor: "icon-feedback-critical" };
obj.open(obj);
}).finally(() => {
callback2(false);
});
};
obj7[3] = deleting;
obj7[4] = deleting;
obj6[0] = callback(credential(4975).Button, obj7);
items[3] = callback(closure_4, obj6);
obj[2] = items;
return callback2(credential(7150).BottomSheet, obj);
};