decord/source/modules/age_assurance/native/AgeVerificationIncodeModal.tsx

81 lines
3.2 KiB
TypeScript
Raw Normal View History

// Module ID: 8533
// Function ID: 8534
2026-07-29 08:29:29 +00:00
// Name: AgeVerificationIncodeModal
// Dependencies: [19, 21, 4636, 576, 4839, 7480, 1114, 8534, 8541, 7103, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 8533 (AgeVerificationIncodeModal)
import nativeDefault from "native" /* 576 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = fn;
let jsx = fn(21).jsx;
const constants = { METHOD_SELECT: "METHOD_SELECT", VERIFY_AGE: "VERIFY_AGE" };
const createStyles = fn(4636);
const obj2 = { headerStyle: { backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOWER, shadowColor: "transparent" } };
let closure_6 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/age_assurance/native/AgeVerificationIncodeModal.tsx");
2026-07-20 16:05:17 +00:00
export default function AgeVerificationIncodeModal(webviewUrl) {
webviewUrl = webviewUrl.webviewUrl;
const onComplete = webviewUrl.onComplete;
const onClose = webviewUrl.onClose;
const tmp = closure_6();
noop = tmp;
2026-08-06 08:05:19 +00:00
let intl = webviewUrl(onClose[6]).intl;
const stringResult = intl.string(webviewUrl(onClose[6]).t.wJVyYR);
2026-07-29 08:29:29 +00:00
jsx = stringResult;
2026-07-20 16:05:17 +00:00
const items = [tmp, webviewUrl, onComplete, onClose, stringResult];
const memo = noop.useMemo(() => {
closure_2 = onClose;
2026-07-29 08:29:29 +00:00
function handleClose() {
closure_2();
onComplete(onClose[4]).pop();
2026-07-29 08:29:29 +00:00
}
const uRL = new URL(webviewUrl);
2026-07-29 08:29:29 +00:00
const origin = uRL.origin;
return {
[closure_2_5.METHOD_SELECT]: {
headerStyle: closure_3.headerStyle,
headerTitle() {
return null;
},
headerLeft() {
const obj = { onPress: handleClose, text: null };
const intl = webviewUrl(onClose[6]).intl;
obj.text = intl.string(webviewUrl(onClose[6]).t.cpT0Cq);
return handleClose(webviewUrl(onClose[5]).HeaderActionButton, obj);
},
render(arg0, arg1) {
const navigation = arg1;
return handleClose(onComplete(onClose[7]), {
onClose: handleClose,
trustedOrigin: origin,
onMethodSelected(injectedJavaScriptBeforeContentLoaded) {
return navigation.navigate(constants.VERIFY_AGE, { injectedJavaScriptBeforeContentLoaded });
}
});
}
2026-08-06 08:05:19 +00:00
},
[closure_2_5.VERIFY_AGE]: {
headerStyle: closure_3.headerStyle,
headerTitle,
headerLeft() {
const obj = { onPress: handleClose, text: null };
const intl = webviewUrl(onClose[6]).intl;
obj.text = intl.string(webviewUrl(onClose[6]).t.cpT0Cq);
return handleClose(webviewUrl(onClose[5]).HeaderActionButton, obj);
},
render(injectedJavaScriptBeforeContentLoaded) {
return handleClose(onComplete(onClose[8]), { webviewUrl, onComplete, onClose: handleClose, injectedJavaScriptBeforeContentLoaded: injectedJavaScriptBeforeContentLoaded.injectedJavaScriptBeforeContentLoaded });
}
2026-07-29 08:29:29 +00:00
}
};
}, items);
let obj = { screens: memo, initialRouteName: constants.METHOD_SELECT, headerBackTitle: null };
2026-08-06 08:05:19 +00:00
const intl2 = webviewUrl(onClose[6]).intl;
obj.headerBackTitle = intl2.string(webviewUrl(onClose[6]).t["13/7kX"]);
2026-07-29 08:29:29 +00:00
return jsx(webviewUrl(onClose[9]).Navigator, { screens: memo, initialRouteName: constants.METHOD_SELECT, headerBackTitle: null });
2026-07-20 16:05:17 +00:00
};