decord/source/modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx
2026-07-21 22:01:30 +00:00

42 lines
1.9 KiB
TypeScript

// Module ID: 6651
// Function ID: 51070
// Name: items
// Dependencies: []
// Exports: getIsPaymentsBlocked, useBlockedPaymentsConfig, useIsPaymentsBlocked
// Module 6651 (items)
const _module = require(dependencyMap[0]);
let obj = { "Bool(false)": "r", "Bool(false)": "showHidden", "Bool(false)": "mobile_products_title", defaultConfig: { paymentsBlocked: false } };
obj = { ../discord_assets/assets/mana/asset-library/generated/RulebookSpotIllustration-2x.png.js: "Text", 炖锅: "__packager_asset", config: { paymentsBlocked: true } };
const items = [obj];
obj.treatments = items;
let closure_2 = _module.createExperiment(obj);
const _module1 = require(dependencyMap[1]);
let closure_3 = _module1.createApexExperiment({ defaultConfig: { enabled: false }, variations: { [1]: { enabled: true } } });
const _module2 = require(dependencyMap[3]);
const result = _module2.fileFinishedImporting("modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx");
export const useBlockedPaymentsConfig = function useBlockedPaymentsConfig() {
let enabled = closure_2.useExperiment({ location: "c519a9_1" }, { autoTrackExposure: false }).paymentsBlocked;
if (!enabled) {
enabled = closure_3.useConfig({ location: "c519a9_1" }).enabled;
}
if (!enabled) {
enabled = "RU" === importDefault(dependencyMap[2])().defaultBillingCountryCode;
}
return enabled;
};
export const useIsPaymentsBlocked = function useIsPaymentsBlocked() {
let enabled = closure_2.useExperiment({ location: "dc120b_3" }, { autoTrackExposure: false }).paymentsBlocked;
if (!enabled) {
enabled = closure_3.useConfig({ location: "dc120b_3" }).enabled;
}
return enabled;
};
export const getIsPaymentsBlocked = function getIsPaymentsBlocked() {
let enabled = closure_2.getCurrentConfig({ location: "1ee357_1" }, { autoTrackExposure: false }).paymentsBlocked;
if (!enabled) {
enabled = closure_3.getConfig({ location: "1ee357_1" }).enabled;
}
return enabled;
};