2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 16792
|
|
|
|
|
// Function ID: 16793
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: DiscoverabilityLandingScene
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [19, 17, 12233, 1922, 676, 21, 4380, 712, 5373, 1500, 589, 12240, 691, 16793, 12260, 12253, 503, 12252, 5889, 1236, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 16792 (DiscoverabilityLandingScene)
|
2026-08-24 06:08:38 +00:00
|
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
|
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import { useContactSyncModalStore } from "ContactSyncModes" /* 12233 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_6 from "mergeGuildAvatar" /* 1922 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import createCacheKey from "createCacheKey" /* 4380 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function DiscoverabilityLandingScene(onComplete) {
|
|
|
|
|
onComplete = onComplete.onComplete;
|
2026-07-29 08:29:29 +00:00
|
|
|
let navigation;
|
|
|
|
|
let stateFromStores;
|
|
|
|
|
let allowPhone;
|
|
|
|
|
let name;
|
|
|
|
|
let allowEmail;
|
2026-08-24 06:08:38 +00:00
|
|
|
allowEmail = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
navigation = onComplete(stateFromStores[9]).useNavigation();
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = onComplete(stateFromStores[9]);
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp = stateFromStores;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [allowEmail];
|
2026-07-23 10:11:24 +00:00
|
|
|
stateFromStores = onComplete(stateFromStores[10]).useStateFromStores(items, () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
const currentUser = allowEmail.getCurrentUser();
|
2026-07-20 16:05:17 +00:00
|
|
|
let phone;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (currentUser != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
phone = currentUser.phone;
|
|
|
|
|
}
|
|
|
|
|
return phone;
|
|
|
|
|
});
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp4 = allowEmail();
|
|
|
|
|
allowPhone = tmp4.allowPhone;
|
|
|
|
|
name = tmp4.name;
|
|
|
|
|
allowEmail = tmp4.allowEmail;
|
|
|
|
|
let tmp5 = allowPhone;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!allowPhone) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp5 = allowEmail;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
allowEmail = tmp5;
|
2026-07-29 08:29:29 +00:00
|
|
|
const items1 = [allowPhone, allowEmail, tmp5, stateFromStores, name, navigation, onComplete];
|
2026-07-23 10:11:24 +00:00
|
|
|
const onNext = allowPhone.useCallback(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = navigation(stateFromStores[11]);
|
|
|
|
|
obj = { phone: allowPhone, email: allowEmail };
|
|
|
|
|
const result = obj.updateDiscoverability(obj);
|
2026-08-24 06:08:38 +00:00
|
|
|
if (allowEmail) {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != stateFromStores) {
|
|
|
|
|
if (allowPhone) {
|
|
|
|
|
if (null == name) {
|
|
|
|
|
navigation.push(onComplete(stateFromStores[12]).DiscoverabilityScenes.NAME);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onComplete();
|
|
|
|
|
}, items1);
|
2026-07-29 08:29:29 +00:00
|
|
|
return jsx(navigation(tmp[13]), { onNext });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function DiscoverabilityNameScene(onComplete) {
|
|
|
|
|
onComplete = onComplete.onComplete;
|
2026-07-29 08:29:29 +00:00
|
|
|
allowPhone = undefined;
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp = callback();
|
2026-07-20 16:05:17 +00:00
|
|
|
({ name, allowPhone } = useContactSyncModalStore());
|
|
|
|
|
const items = [allowPhone, onComplete];
|
|
|
|
|
const effect = React.useEffect(() => {
|
|
|
|
|
if (!allowPhone) {
|
|
|
|
|
onComplete();
|
|
|
|
|
}
|
|
|
|
|
}, items);
|
|
|
|
|
const items1 = [onComplete];
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { style: tmp.container, children: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
callback = React.useCallback((arg0) => {
|
|
|
|
|
const result = onComplete(closure_1_2[14]).startContactSyncForDiscoverability(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
onComplete();
|
|
|
|
|
}, items1);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { onNext: callback, loading: false, initialName: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp2 = useContactSyncModalStore();
|
|
|
|
|
const tmp6 = View;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (name == null) {
|
|
|
|
|
name = "";
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[2] = name;
|
2026-08-25 06:04:03 +00:00
|
|
|
obj[1] = jsx(allowPhone(12253), { onNext: callback, loading: false, initialName: null });
|
2026-07-29 08:29:29 +00:00
|
|
|
return <tmp6 onNext={callback} loading={false} initialName={null} />;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
class RedesignDiscoverabilityModal {
|
|
|
|
|
constructor(arg0) {
|
|
|
|
|
onComplete = global.route.params.onComplete;
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp = closure_8();
|
|
|
|
|
obj = {
|
|
|
|
|
headerStyle: tmp.header,
|
|
|
|
|
screens: closure_3.useMemo(() => {
|
|
|
|
|
if (null == fn) {
|
|
|
|
|
fn = () => {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
let obj = {};
|
|
|
|
|
obj = {
|
|
|
|
|
ignoreKeyboard: true,
|
|
|
|
|
impressionName: onComplete(closure_1_2[16]).ImpressionNames.DISCOVERABILITY,
|
|
|
|
|
fullscreen: true,
|
|
|
|
|
headerLeft() {
|
|
|
|
|
return null;
|
|
|
|
|
},
|
|
|
|
|
headerTitle() {
|
|
|
|
|
return null;
|
|
|
|
|
},
|
|
|
|
|
headerRight(arg0) {
|
|
|
|
|
const obj = { insideNavigator: true };
|
|
|
|
|
const merged = Object.assign(arg0);
|
|
|
|
|
obj.onPress = function onPress() {
|
|
|
|
|
return callback(true);
|
|
|
|
|
};
|
|
|
|
|
return closure_1_7(closure_1_1(closure_1_2[17]), obj);
|
|
|
|
|
},
|
|
|
|
|
render() {
|
|
|
|
|
return closure_1_7(closure_1_9, { onComplete: fn });
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
obj[onComplete(closure_1_2[12]).DiscoverabilityScenes.LANDING] = obj;
|
|
|
|
|
obj = {
|
|
|
|
|
ignoreKeyboard: true,
|
|
|
|
|
impressionName: onComplete(closure_1_2[16]).ImpressionNames.DISCOVERABILITY,
|
|
|
|
|
fullscreen: true,
|
|
|
|
|
headerTitle() {
|
|
|
|
|
return null;
|
|
|
|
|
},
|
|
|
|
|
render() {
|
|
|
|
|
return closure_1_7(closure_1_10, { onComplete: fn });
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
obj[onComplete(closure_1_2[12]).DiscoverabilityScenes.NAME] = obj;
|
|
|
|
|
return obj;
|
|
|
|
|
}, items),
|
|
|
|
|
initialRouteName: require("keys").DiscoverabilityScenes.LANDING,
|
|
|
|
|
headerBackTitle: null
|
|
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
items = [];
|
|
|
|
|
items[0] = onComplete;
|
2026-07-23 10:11:24 +00:00
|
|
|
intl = require("getSystemLocale").intl;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[3] = intl.string(require("getSystemLocale").t["13/7kX"]);
|
2026-07-23 10:11:24 +00:00
|
|
|
return jsx(require("NavigationStack").Navigator, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey = { header: null, container: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey = { borderBottomWidth: 0, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, shadowColor: "transparent" };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey[0] = createCacheKey;
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey[1] = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, justifyContent: "center", paddingBottom: 44, paddingTop: require("NAV_BAR_HEIGHT").NAV_BAR_HEIGHT + 32 };
|
|
|
|
|
let closure_8 = createCacheKey.createStyles(createCacheKey);
|
2026-07-23 10:11:24 +00:00
|
|
|
RedesignDiscoverabilityModal.modalConfig = { animation: require("ME").ModalAnimation.SLIDE_IN_OUT };
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj1 = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, justifyContent: "center", paddingBottom: 44, paddingTop: require("NAV_BAR_HEIGHT").NAV_BAR_HEIGHT + 32 };
|
|
|
|
|
let result = require("set").fileFinishedImporting("modules/nuf/native/components/RedesignDiscoverabilityModal.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default RedesignDiscoverabilityModal;
|