/* Metro module 5263; source: modules/age_assurance/AgeVerificationActionCreators.native.tsx; dependencies: [5, 5262, 33, 1581, 4497, 5264, 5080, 5265, 1962, 4813, 3835, 5469, 5470, 3853, 2] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import Linking from '../../lib/native/Linking.tsx'; /* Metro dependency 3853 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as MetaQuestUtilsAndroidModule from '../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */ import * as AgeVerificationConstantsModule from './AgeVerificationConstants.tsx'; /* Metro dependency 5262 */ function _fun46809(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:6, offset: 0x011af544, size: 206 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {showAgeVerification: showAgeVerification, showAgeVerificationGetStartedModal: showAgeVerificationGetStartedModal, openUrl: openUrl}; (FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/AgeVerificationActionCreators.native.tsx'); exports.default = object; function showAgeVerification(a0) { // fn#46810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:276, offset: 0x011af612, size: 245 bytes, params: 2, frame: 19 var defaultImport; const onClose = a0.onClose; const r5 = onClose !== undefined ? onClose : function() { }; a0.shouldShowExpressiveModal; const webviewUrl = a0.webviewUrl; const object = {'onClose': 0, 'shouldShowExpressiveModal': 0, 'webviewUrl': 0}; silentSetPrototypeOf(object, null, undefined); const env0_2 = copyDataProperties({}, a0, object, undefined); if (MetaQuestUtilsAndroidModule.isMetaQuest()) { (require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert(AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY, ((Component) => )(importDefault(5264) /* metro dependency 5264: AgeVerificationQuestUnsupportedAlertModal */), r5); } else if (webviewUrl != null) { defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */; defaultImport.pushLazy(Module00005(_fun46813), {}, AGE_VERIFICATION_MODAL_KEY); } function* _fun46813() { // fn#46813, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:433, offset: 0x011af710, size: 89 bytes, params: 1, frame: 15 var environment; if (false) { return undefined; } value = environment.__proto__.__proto__; const binding = env2_0; const binding2 = env2_2; yield binding(binding2[8])(binding2[7], binding2.paths); value = undefined; if (false) { return value; } const env0_0 = value.default; return _fun46814; function _fun46814() { // fn#46814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:495, offset: 0x011af769, size: 58 bytes, params: 1, frame: 14 const binding = env3_7; const binding2 = env0_0; const object = {}; object.webviewUrl = importDefault; object.onClose = require; copyDataProperties(object, dependencyMap, require); return binding(binding2, object); } } } function showAgeVerificationGetStartedModal({entryPoint, onClose}) { // fn#46815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:579, offset: 0x011af7a3, size: 282 bytes, params: 2, frame: 21 var defaultImport; var moduleValue5; var env0_1; var env0_2; if ((require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()) { moduleValue5 = require(4497) /* metro dependency 4497: useAlertStoreNative */; moduleValue5.openAlert(AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY, ((Component) => )(importDefault(5264) /* metro dependency 5264: AgeVerificationQuestUnsupportedAlertModal */), onClose); } else { env0_1 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).isAgeVerified() && (require(3835) /* metro dependency 3835: RegionalFeatureConfigUtils */).hasAgeGatedFeatures(); env0_2 = (require(5469) /* metro dependency 5469: AgeVerificationExpressiveModalEverywhereExperiment */).isAgeVerificationExpressiveModalEverywhereEnabled(entryPoint); defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */; defaultImport.pushLazy(Module00005(_fun46817), {}, AGE_VERIFICATION_GET_STARTED_MODAL_KEY); } function* _fun46817() { // fn#46817, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:821, offset: 0x011af8c6, size: 89 bytes, params: 1, frame: 15 var environment; if (false) { return undefined; } value = environment.__proto__.__proto__; const binding = env2_0; const binding2 = env2_2; yield binding(binding2[8])(binding2[12], binding2.paths); value = undefined; if (false) { return value; } const env0_0 = value.default; return _fun46818; function _fun46818() { // fn#46818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:884, offset: 0x011af91f, size: 56 bytes, params: 1, frame: 14 return env3_7(env0_0, {entryPoint: require, isRetry: importDefault, useEmbeddedMethods: dependencyMap}); } } } function openUrl(a0) { // fn#46819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5441:958, offset: 0x011af957, size: 41 bytes, params: 2, frame: 12 (Linking).openURL(a0); } } global.__d(_fun46809, 5263, [5, 5262, 33, 1581, 4497, 5264, 5080, 5265, 1962, 4813, 3835, 5469, 5470, 3853, 2]) /* metro module 5263, dependencies: [5, 5262, 33, 1581, 4497, 5264, 5080, 5265, 1962, 4813, 3835, 5469, 5470, 3853, 2] */;