Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,50 @@
|
||||
/* Metro module 7035; source: modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx; dependencies: [4620, 1854, 7036, 2] */
|
||||
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 = (require(4620) /* metro dependency 4620: experiments */).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 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-03-block-purchases',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).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 = (importDefault(7036) /* metro dependency 7036: 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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user