// Module ID: 15836 // Function ID: 121051 // Name: Hcaptcha // Dependencies: [] // Exports: default // Module 15836 (Hcaptcha) let StyleSheet; const _module = require(dependencyMap[0]); ({ useMemo: closure_2, useCallback: closure_3 } = _module); importDefault(dependencyMap[0]); const _module1 = require(dependencyMap[1]); ({ Linking: closure_4, StyleSheet, View: closure_5, ActivityIndicator: closure_6 } = _module1); const jsx = require(dependencyMap[2]).jsx; let closure_8 = "(" + String(() => { const importDefault = window.ReactNativeWebView.postMessage; function patchedPostMessage(arg0, arg1, arg2) { postMessage(arg0, arg1, arg2); } patchedPostMessage.toString = () => String(Object.hasOwnProperty).replace("hasOwnProperty", "postMessage"); window.ReactNativeWebView.postMessage = patchedPostMessage; }) + ")();"; const styles = StyleSheet.create({ loadingOverlay: {} }); export default function Hcaptcha(siteKey) { let cancelButtonText; let languageCode; let loadingIndicatorColor; let onMessage; let showLoading; let style; let url; siteKey = siteKey.siteKey; const importDefault = siteKey; ({ languageCode, cancelButtonText, loadingIndicatorColor } = siteKey); const dependencyMap = loadingIndicatorColor; const backgroundColor = siteKey.backgroundColor; const theme = siteKey.theme; let combined = theme; const rqdata = siteKey.rqdata; let closure_4 = rqdata; let str = siteKey; ({ onMessage, style, url, showLoading } = siteKey); if (!siteKey) { str = "missing-sitekey"; } const text = `https://hcaptcha.com/1/api.js?render=explicit&onload=onloadCallback${"&host=" + str + ".react-native.hcaptcha.com"}`; let text1 = text; if (languageCode) { text1 = `https://hcaptcha.com/1/api.js?render=explicit&onload=onloadCallback${"&host=" + str + ".react-native.hcaptcha.com"}${"&hl=" + languageCode}`; } let text2 = text1; if ("object" === typeof theme) { text2 = `${tmp2}&custom=true`; } let tmp5 = theme; if (theme) { tmp5 = "string" === tmp3; } let tmp6 = theme; if (tmp5) { const _HermesInternal = HermesInternal; combined = "\"" + theme + "\""; tmp6 = combined; } let tmp8 = rqdata; if (rqdata) { tmp8 = "string" === typeof rqdata; } if (tmp8) { const _HermesInternal2 = HermesInternal; closure_4 = "\"" + rqdata + "\""; } const items = [siteKey, backgroundColor, tmp6]; const items1 = [loadingIndicatorColor]; const tmp9 = backgroundColor(() => { let str = siteKey; if (!siteKey) { str = ""; } return "\n \n
\n \n \n \n \n \n \n \n \n \n "; }, items); let obj = { originWhitelist: ["