2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 6590
|
|
|
|
|
// Function ID: 6591
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: AgeVerifyScreen
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 5432, 21, 5442, 4233, 4997, 6335, 4668, 712, 5265, 5437, 1236, 6343, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 6590 (AgeVerifyScreen)
|
|
|
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
|
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
|
import { AGE_VERIFICATION_MODAL_KEY as closure_4 } from "set" /* 5432 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
|
|
|
import createCacheKey from "createCacheKey" /* 4668 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
function AgeVerifyScreen(uri) {
|
|
|
|
|
const onComplete = uri.onComplete;
|
|
|
|
|
const onClose = uri.onClose;
|
|
|
|
|
let isSuspendedUser;
|
|
|
|
|
let callback;
|
|
|
|
|
isSuspendedUser = onComplete(isSuspendedUser[3]).useIsSuspendedUser();
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [onComplete, onClose];
|
2026-07-23 10:11:24 +00:00
|
|
|
callback = callback.useCallback(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
onComplete();
|
|
|
|
|
onClose();
|
|
|
|
|
}, items);
|
|
|
|
|
const items1 = [callback];
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback1 = callback.useCallback(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (obj.isModalOpen(closure_1_4)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
callback();
|
|
|
|
|
}
|
|
|
|
|
}, items1);
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = onComplete(isSuspendedUser[3]);
|
2026-07-23 10:11:24 +00:00
|
|
|
const watchAgeVerificationStatusChange = onComplete(isSuspendedUser[5]).useWatchAgeVerificationStatusChange(callback1);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items2 = [callback, isSuspendedUser];
|
2026-07-29 08:29:29 +00:00
|
|
|
const onMessage = callback.useCallback((nativeEvent) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != nativeEvent.nativeEvent.data) {
|
2026-07-29 08:29:29 +00:00
|
|
|
try {
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof nativeEvent.nativeEvent.data === "string") {
|
2026-07-29 08:29:29 +00:00
|
|
|
const _JSON = JSON;
|
|
|
|
|
let data = JSON.parse(nativeEvent.nativeEvent.data);
|
|
|
|
|
} else {
|
|
|
|
|
data = nativeEvent.nativeEvent.data;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp3 = isSuspendedUser;
|
|
|
|
|
if (isSuspendedUser) {
|
|
|
|
|
let eventType;
|
|
|
|
|
if (data != null) {
|
|
|
|
|
eventType = data.eventType;
|
|
|
|
|
}
|
|
|
|
|
tmp3 = "Verification.Result" === eventType;
|
|
|
|
|
}
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
callback();
|
|
|
|
|
}
|
|
|
|
|
} catch (err) {
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, items2);
|
2026-07-29 08:29:29 +00:00
|
|
|
return jsx(onClose(isSuspendedUser[6]), { allowsInlineMediaPlayback: true, javaScriptEnabled: true, source: { uri: uri.webviewUrl }, onMessage, injectedJavaScript: "\n window.addEventListener('message', function(event) {\n window.ReactNativeWebView.postMessage(event.data);\n }, true);\n" });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let closure_6 = { VERIFY_AGE: "VERIFY_AGE" };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey = { headerStyle: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey[0] = createCacheKey;
|
2026-08-24 06:08:38 +00:00
|
|
|
let closure_8 = createCacheKey.createStyles(createCacheKey);
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/age_assurance/native/AgeVerificationModal.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function AgeVerificationModal(webviewUrl) {
|
|
|
|
|
webviewUrl = webviewUrl.webviewUrl;
|
|
|
|
|
const onComplete = webviewUrl.onComplete;
|
|
|
|
|
const onClose = webviewUrl.onClose;
|
2026-07-29 08:29:29 +00:00
|
|
|
let React;
|
2026-08-24 06:08:38 +00:00
|
|
|
c4 = undefined;
|
|
|
|
|
const tmp = callback();
|
2026-07-29 08:29:29 +00:00
|
|
|
React = tmp;
|
|
|
|
|
let intl = webviewUrl(onClose[11]).intl;
|
2026-07-23 10:11:24 +00:00
|
|
|
const stringResult = intl.string(webviewUrl(onClose[11]).t.wJVyYR);
|
2026-07-29 08:29:29 +00:00
|
|
|
c4 = stringResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [tmp, webviewUrl, onComplete, onClose, stringResult];
|
2026-07-29 08:29:29 +00:00
|
|
|
const memo = React.useMemo(() => {
|
|
|
|
|
function handleClose() {
|
|
|
|
|
dependencyMap();
|
2026-08-24 06:08:38 +00:00
|
|
|
let arr = callback2(5265);
|
2026-07-29 08:29:29 +00:00
|
|
|
arr = arr.pop();
|
|
|
|
|
}
|
|
|
|
|
return {
|
2026-08-24 06:08:38 +00:00
|
|
|
[closure_1_6.VERIFY_AGE]: {
|
2026-07-29 08:29:29 +00:00
|
|
|
headerStyle: handleClose.headerStyle,
|
|
|
|
|
headerTitle: c4,
|
|
|
|
|
headerLeft() {
|
|
|
|
|
const obj = { onPress: handleClose, text: null };
|
|
|
|
|
const intl = callback(1236).intl;
|
|
|
|
|
obj[1] = intl.string(callback(1236).t.cpT0Cq);
|
2026-08-24 06:08:38 +00:00
|
|
|
return closure_1_5(callback(5437).HeaderActionButton, obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
render() {
|
2026-08-24 06:08:38 +00:00
|
|
|
return closure_1_5(closure_1_7, { webviewUrl: closure_0, onComplete: closure_1, onClose: handleClose });
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}, items);
|
|
|
|
|
let obj = { screens: memo, initialRouteName: constants.VERIFY_AGE, headerBackTitle: null };
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl2 = webviewUrl(onClose[11]).intl;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[2] = intl2.string(webviewUrl(onClose[11]).t["13/7kX"]);
|
|
|
|
|
return jsx(webviewUrl(onClose[12]).Navigator, { screens: memo, initialRouteName: constants.VERIFY_AGE, headerBackTitle: null });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|