// Metro module 7618 (f7619).
import { useMemo, useEffect } from "react";
import { createStyles } from "../../../design/components/Styles/native/createStyles";
import Module712 from "../../../_bundle/Module712";
import ModalActionCreators from "../../../actions/ModalActionCreators";
import { getHeaderCloseButton, getHeaderBackButton } from "../../../design/components/Navigator/native/NavigatorHeader.native";
import AgeVerificationIntroScreen from "./AgeVerificationIntroScreen";
import AgeVerificationRetryScreen from "./AgeVerificationRetryScreen";
import AgeVerificationEmbeddedIntroScreen from "./AgeVerificationEmbeddedIntroScreen";
import GoogleWalletVerificationScreen from "./GoogleWalletVerificationScreen";
import { v4 } from "../../../_bundle/Module514";
import { AgeVerificationModalVersion, trackAgeVerificationModalViewed } from "../AgeVerificationAnalyticsUtils";
import { Navigator } from "../../../design/components/Navigator/native/Navigator.native";
import { intl, t } from "../../../intl/index.native";
const useStyles = createStyles({
headerStyle: {
backgroundColor: Module712.colors.BACKGROUND_BASE_LOWER,
shadowColor: "transparent"
}
});
let c4780_6 = {
INTRO: "INTRO",
RETRY: "RETRY",
EXPRESSIVE_INTRO: "EXPRESSIVE_INTRO",
GOOGLE_WALLET_VERIFICATION: "GOOGLE_WALLET_VERIFICATION"
};
export default function AgeVerificationGetStartedModal(props) {
let memo2;
const { entryPoint, isRetry, useEmbeddedMethods = false } = props;
let c15911_2 = useEmbeddedMethods;
const { classificationId, onComplete } = props;
memo2 = void 0;
const styles = useStyles();
const memo = useMemo(() => v4(), []);
const memo4 = useMemo(() => {
let closeModalWithOnComplete2;
const memo3 = memo;
const entryPoint2 = entryPoint;
const classificationId2 = classificationId;
const onComplete2 = onComplete;
const closeModal2 = function closeModal() {
return ModalActionCreators.pop();
};
closeModalWithOnComplete2 = function closeModalWithOnComplete() {
ModalActionCreators.pop();
if (onComplete2 != null) {
onComplete2();
}
};
const r14 = {};
r14[c4780_6.INTRO] = {
headerStyle: styles.headerStyle,
headerTitle: () => null,
headerLeft: getHeaderCloseButton(closeModal2),
render: () =>
};
r14[c4780_6.RETRY] = {
headerStyle: styles.headerStyle,
headerTitle: () => null,
headerLeft: getHeaderCloseButton(closeModal2),
render: () =>
};
r14[c4780_6.EXPRESSIVE_INTRO] = {
headerStyle: styles.headerStyle,
headerTitle: () => null,
headerLeft: getHeaderCloseButton(closeModal2),
render: (a0, a1) =>
};
r14[c4780_6.GOOGLE_WALLET_VERIFICATION] = {
headerStyle: styles.headerStyle,
headerTitle: () => null,
headerLeft: getHeaderBackButton(),
render: () =>
};
return r14;
}, [styles, memo, classificationId, onComplete, entryPoint]);
memo2 = useMemo(() => c15911_2 ? AgeVerificationModalVersion.EXPRESSIVE_PRIMARY : isRetry ? AgeVerificationModalVersion.RETRY : AgeVerificationModalVersion.PRIMARY, [useEmbeddedMethods, isRetry]);
useEffect(() => {
trackAgeVerificationModalViewed(memo, memo2, entryPoint);
}, [memo, entryPoint, memo2]);
return ;
};
export { c4780_6 as AgeVerificationGetStartedModalScenes };