/* Metro module 7035; source: modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx; dependencies: [4620, 1854, 7036, 2] */ import UseGeoForUserNative from '../../premium/hooks/useGeoForUser.native.tsx'; /* Metro dependency 7036 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */ import * as ExperimentsModule from '../../experiments/index.tsx'; /* Metro dependency 4620 */ function _fun55741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7213:6, offset: 0x013b09c0, size: 283 bytes, params: 8, frame: 24 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = (ExperimentsModule).createExperiment({'kind': 'user', 'id': '2022-03_block_russian_purchases', 'label': 'Block purchases based on country', defaultConfig: {paymentsBlocked: false}, treatments: [{'id': 1, 'label': 'Payments Blocked', config: {paymentsBlocked: true}}]}); const env0_3 = (ApexModule).createApexExperiment({'name': '2026-03-block-purchases', 'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}}); (FileImportTrackerModule).fileFinishedImporting('modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx'); exports.useBlockedPaymentsConfig = useBlockedPaymentsConfig; exports.useIsPaymentsBlocked = useIsPaymentsBlocked; exports.getIsPaymentsBlocked = getIsPaymentsBlocked; function useBlockedPaymentsConfig() { // fn#55742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7213:581, offset: 0x013b0adb, size: 123 bytes, params: 1, frame: 16 let binding = env0_2; const useExperiment = binding.useExperiment; const paymentsBlocked = Reflect.apply(useExperiment, binding, [{location: 'c519a9_1'}, {autoTrackExposure: false}]).paymentsBlocked; binding = env0_3; const useConfig = binding.useConfig; const enabled = Reflect.apply(useConfig, binding, [{location: 'c519a9_1'}]).enabled; const defaultBillingCountryCode = (UseGeoForUserNative)().defaultBillingCountryCode; let r0 = paymentsBlocked || enabled; r0 = !r0 ? defaultBillingCountryCode === 'RU' : r0; return r0; } function useIsPaymentsBlocked() { // fn#55743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7213:830, offset: 0x013b0b56, size: 80 bytes, params: 1, frame: 16 let binding = env0_2; const useExperiment = binding.useExperiment; const paymentsBlocked = Reflect.apply(useExperiment, binding, [{location: 'dc120b_3'}, {autoTrackExposure: false}]).paymentsBlocked; binding = env0_3; const useConfig = binding.useConfig; return paymentsBlocked || Reflect.apply(useConfig, binding, [{location: 'dc120b_3'}]).enabled; } function getIsPaymentsBlocked() { // fn#55744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7213:1027, offset: 0x013b0ba6, size: 80 bytes, params: 1, frame: 16 let binding = env0_2; const getCurrentConfig = binding.getCurrentConfig; const paymentsBlocked = Reflect.apply(getCurrentConfig, binding, [{location: '1ee357_1'}, {autoTrackExposure: false}]).paymentsBlocked; binding = env0_3; const getConfig = binding.getConfig; return paymentsBlocked || Reflect.apply(getConfig, binding, [{location: '1ee357_1'}]).enabled; } } global.__d(_fun55741, 7035, [4620, 1854, 7036, 2]) /* metro module 7035, dependencies: [4620, 1854, 7036, 2] */;