decord/source/modules/nuf/native/components/DiscoverabilityActionSheet.tsx

112 lines
5.9 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11977
// Function ID: 11978
2026-07-20 16:05:17 +00:00
// Name: DiscoverabilityActionSheet
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 11899, 676, 21, 4668, 712, 8122, 1236, 4739, 11902, 7213, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11977 (DiscoverabilityActionSheet)
import ThemesDefault from "Themes" /* 712 */;
import closure_2 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import ContactSyncModes from "ContactSyncModes" /* 11899 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ useContactSyncModalStore: c4, setAllowSync: c5, setAllowPhone: closure_6, setAllowEmail: error } = ContactSyncModes);
2026-08-24 06:08:38 +00:00
({ jsx: closure_8, jsxs: c9 } = jsxProd);
2026-07-29 08:29:29 +00:00
createCacheKey = { container: null, formRow: null, syncRow: null, formText: null, info: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, paddingBottom: 16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { marginTop: 8, paddingVertical: 16, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = { marginTop: 24 };
2026-08-24 06:08:38 +00:00
let obj1 = { marginTop: 8, paddingVertical: 16, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
createCacheKey[3] = { fontFamily: require("ME").Fonts.PRIMARY_SEMIBOLD, color: ThemesDefault.colors.INTERACTIVE_TEXT_ACTIVE };
let obj2 = { fontFamily: require("ME").Fonts.PRIMARY_SEMIBOLD, color: ThemesDefault.colors.INTERACTIVE_TEXT_ACTIVE };
createCacheKey[4] = { marginTop: 8, fontSize: 14, lineHeight: 18, paddingHorizontal: 16, color: ThemesDefault.colors.TEXT_SUBTLE };
let closure_10 = createCacheKey.createStyles(createCacheKey);
let obj3 = { marginTop: 8, fontSize: 14, lineHeight: 18, paddingHorizontal: 16, color: ThemesDefault.colors.TEXT_SUBTLE };
const result = require("set").fileFinishedImporting("modules/nuf/native/components/DiscoverabilityActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function DiscoverabilityActionSheet() {
2026-08-24 06:08:38 +00:00
const tmp = callback4();
2026-07-20 16:05:17 +00:00
const tmp2 = callback();
const allowPhone = tmp2.allowPhone;
2026-08-24 06:08:38 +00:00
let allowEmail = tmp2.allowEmail;
2026-07-20 16:05:17 +00:00
let tmp3 = allowPhone;
if (!allowPhone) {
tmp3 = allowEmail;
}
2026-08-24 06:08:38 +00:00
allowEmail = tmp3;
2026-07-20 16:05:17 +00:00
const items = [tmp3];
const items1 = [allowPhone];
2026-08-24 06:08:38 +00:00
callback = allowEmail.useCallback(() => {
closure_1_5(!allowEmail);
2026-07-20 16:05:17 +00:00
}, items);
const items2 = [allowEmail];
2026-08-24 06:08:38 +00:00
const callback1 = allowEmail.useCallback(() => {
closure_1_6(!allowPhone);
2026-07-20 16:05:17 +00:00
}, items1);
2026-07-29 08:29:29 +00:00
let obj = { style: tmp.container, children: null };
2026-08-24 06:08:38 +00:00
const callback2 = allowEmail.useCallback(() => {
closure_1_7(!allowEmail);
2026-07-20 16:05:17 +00:00
}, items2);
2026-07-29 08:29:29 +00:00
obj = { DEPRECATED_style: items3, label: null, onPress: null, trailing: null };
2026-07-23 10:11:24 +00:00
items3 = [, ];
2026-07-20 16:05:17 +00:00
({ formRow: arr4[0], syncRow: arr4[1] } = tmp);
2026-07-29 08:29:29 +00:00
obj = { style: tmp.formText, text: null };
2026-07-23 10:11:24 +00:00
const intl = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj[1] = intl.string(allowPhone(allowEmail[8]).t.gMUgpv);
obj[1] = callback2(allowPhone(allowEmail[7]).FormRow.Label, obj);
obj[2] = callback;
obj[3] = callback2(allowPhone(allowEmail[7]).FormRow.Checkbox, { selected: tmp3 });
2026-07-23 10:11:24 +00:00
const items4 = [callback2(allowPhone(allowEmail[7]).FormRow, obj), , , , , , ];
2026-08-24 06:08:38 +00:00
obj1 = { style: tmp.info, children: null };
2026-07-23 10:11:24 +00:00
const intl2 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj1[1] = intl2.string(allowPhone(allowEmail[8]).t.pfjsB5);
items4[1] = callback2(allowPhone(allowEmail[7]).FormText, obj1);
const obj2 = { style: tmp.info, children: null };
2026-07-23 10:11:24 +00:00
const intl3 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj2[1] = intl3.string(allowPhone(allowEmail[8]).t.cW1nr9);
items4[2] = callback2(allowPhone(allowEmail[7]).FormText, obj2);
const obj3 = { style: tmp.info, children: null };
2026-07-23 10:11:24 +00:00
const intl4 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj3[1] = intl4.format(allowPhone(allowEmail[8]).t.eswIfi, {
2026-08-24 06:08:38 +00:00
learnMoreHook(children) {
return callback(allowPhone(allowEmail[9]).Text, { onPress: allowPhone(allowEmail[10]).handleOpenLearnMoreLink, variant: "text-sm/medium", color: "text-link", children }, arg1);
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
items4[3] = callback2(allowPhone(allowEmail[7]).FormText, obj3);
const obj5 = { title: null, thinTitle: true };
2026-07-23 10:11:24 +00:00
const intl5 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj5[0] = intl5.string(allowPhone(allowEmail[8]).t["0t2wRW"]);
items4[4] = callback2(allowPhone(allowEmail[7]).FormTitle, obj5);
const obj6 = { DEPRECATED_style: tmp.formRow, label: null, subLabel: null, onPress: null, trailing: null };
const obj7 = { style: tmp.formText, text: null };
2026-07-23 10:11:24 +00:00
const intl6 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj7[1] = intl6.string(allowPhone(allowEmail[8]).t["eJnn0+"]);
obj6[1] = callback2(allowPhone(allowEmail[7]).FormRow.Label, obj7);
const obj8 = { variant: "text-sm/medium", color: "text-default", children: null };
2026-07-23 10:11:24 +00:00
const intl7 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj8[2] = intl7.string(allowPhone(allowEmail[8]).t.X7pIKN);
obj6[2] = callback2(allowPhone(allowEmail[9]).Text, obj8);
obj6[3] = callback1;
obj6[4] = callback2(allowPhone(allowEmail[7]).FormRow.Checkbox, { selected: allowPhone });
items4[5] = callback2(allowPhone(allowEmail[7]).FormRow, obj6);
const obj9 = { DEPRECATED_style: tmp.formRow, label: null, subLabel: null, onPress: null, trailing: null };
const obj10 = { style: tmp.formText, text: null };
2026-07-23 10:11:24 +00:00
const intl8 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj10[1] = intl8.string(allowPhone(allowEmail[8]).t.dI4d4S);
obj9[1] = callback2(allowPhone(allowEmail[7]).FormRow.Label, obj10);
const obj11 = { variant: "text-sm/medium", color: "text-default", children: null };
2026-07-23 10:11:24 +00:00
const intl9 = allowPhone(allowEmail[8]).intl;
2026-07-29 08:29:29 +00:00
obj11[2] = intl9.string(allowPhone(allowEmail[8]).t.ilGsHE);
obj9[2] = callback2(allowPhone(allowEmail[9]).Text, obj11);
obj9[3] = callback2;
obj9[4] = callback2(allowPhone(allowEmail[7]).FormRow.Checkbox, { selected: allowEmail });
items4[6] = callback2(allowPhone(allowEmail[7]).FormRow, obj9);
obj[1] = items4;
2026-07-20 16:05:17 +00:00
const children = callback3(View, obj);
2026-07-23 10:11:24 +00:00
return callback2(allowPhone(allowEmail[11]).ActionSheet, { startExpanded: true, children });
2026-07-20 16:05:17 +00:00
};