/* Metro module 12045; source: modules/nuf/native/components/DiscoverabilityLanding.tsx; dependencies: [31, 27, 11994, 661, 33, 4501, 697, 6597, 1585, 4080, 12046, 1962, 5314, 5475, 12047, 4573, 1244, 1305, 7972, 12021, 4578, 2] */
function _fun92561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12231:6, offset: 0x0208f34a, size: 600 bytes, params: 8, frame: 29
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.ScrollView;
const env0_6 = (require(11994) /* metro dependency 11994: ContactSyncModalStore */).useContactSyncModalStore;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
object2.headerContainer = {'flexGrow': 0, 'justifyContent': 'center', 'marginBottom': 24};
object2.header = {'paddingHorizontal': 16, 'alignItems': 'center'};
object2.image = {'width': '100%', 'marginHorizontal': 0};
object2.button = {'flexGrow': 0, 'marginHorizontal': 16, 'marginBottom': 24};
object2.title = {'textAlign': 'center', 'marginTop': 16};
const object4 = {};
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
const DISPLAY_MEDIUM = Fonts.DISPLAY_MEDIUM;
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
copyDataProperties(object4, textStyles(DISPLAY_MEDIUM, TEXT_SUBTLE, 14), undefined);
object4['textAlign'] = 'center';
object4['marginTop'] = 8;
object2.subtitle = object4;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.formRow = {paddingVertical: 16, backgroundColor: BACKGROUND_SURFACE_HIGH};
const object6 = {};
const value3 = textStyles;
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
copyDataProperties(object6, value3(PRIMARY_SEMIBOLD, INTERACTIVE_TEXT_ACTIVE, 16), undefined);
object2.formText = object6;
object2.footerContainer = {'flexGrow': 1, 'width': '100%'};
object2.info = {'paddingHorizontal': 16, 'marginTop': 8, 'marginBottom': 24};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/nuf/native/components/DiscoverabilityLanding.tsx');
exports.default = DiscoverabilityLanding;
}
function DiscoverabilityLanding({onNext}) { // fn#92562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12231:942, offset: 0x0208f5a2, size: 1031 bytes, params: 2, frame: 33
const styles = useStyles();
const {allowEmail, allowPhone} = useContactSyncModalStore();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const env0_3Binding = env0_3.useCallback(_fun92563, [allowPhone, allowEmail]);
const object = {};
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
object.paddingTop = NAV_BAR_HEIGHT + 32;
object.paddingBottom = bottom + 16;
const items2 = [((Component) => )(importDefault(5475) /* metro dependency 5475: FastImage */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = {Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.n8nw6j])};
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
string = intl.string;
const KMW0kP = (require(1244) /* metro dependency 1244: indexNative */).t.KMW0kP;
items2[2] = {Reflect.apply(string, intl, [KMW0kP])};
const view = {items2};
const FormCheckboxRow = (require(7972) /* metro dependency 7972: native */).FormCheckboxRow;
const formCheckboxRowProps = {DEPRECATED_style: styles.formRow};
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
const Label = FormRow.Label;
formCheckboxRowProps.label = ;
formCheckboxRowProps.onPress = (require(12021) /* metro dependency 12021: NUFActionCreators */).toggleDiscoverabilityForUser;
formCheckboxRowProps.selected = allowEmail || allowPhone;
const items3 = [];
const items4 = [intl.string((require(1244) /* metro dependency 1244: indexNative */).t['DGZg+k']), ' '];
const format = intl.format;
const QmF5z4 = (require(1244) /* metro dependency 1244: indexNative */).t.QmF5z4;
items4[2] = Reflect.apply(format, intl, [QmF5z4, {learnMoreHook: learnMoreHook}]);
items3[1] = {items4};
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const PDTjLN = (require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN;
items3[2] = ;
return (
{view}
{items3}
);
}
function _fun92563() { // fn#92563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12231:1070, offset: 0x0208f9a9, size: 103 bytes, params: 1, frame: 17
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[9]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[11]);
value = value(dependencyMap[10], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'Discoverability Landing', {allowPhone: allowPhone,
allowEmail: allowEmail}]);
}
function DiscoverabilityLandingLearnMoreHook(a0, a1) { // fn#92564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12231:2159, owner: DiscoverabilityLanding.learnMoreHook, offset: 0x0208fa10, size: 80 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
{a0}
);
}