decord/alpha/source/modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx
github-actions e160b228c5 chore: update source for alpha 348.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4942.js (118.4 MB)
2026-09-22 07:41:18 +00:00

30 lines
1.2 KiB
TypeScript

// Module ID: 7662
// Function ID: 7663
// Name: BlockedPaymentsCountryExperiment
// Dependencies: [1434, 7663, 2]
// Exports: getIsPaymentsBlocked, useBlockedPaymentsConfig, useIsPaymentsBlocked
// Module 7662 (BlockedPaymentsCountryExperiment)
import ApexExperiment from "ApexExperiment" /* 1434 */;
import size from "module_2" /* 2 */;
const obj = { name: "2026-03-block-purchases", kind: "user", defaultConfig: { enabled: false }, variations: null };
const obj2 = { 1: null };
obj2[1] = { enabled: true };
obj.variations = obj2;
let closure_2 = ApexExperiment.createApexExperiment(obj);
const result = size.fileFinishedImporting("modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx");
export const useBlockedPaymentsConfig = function useBlockedPaymentsConfig() {
let enabled = closure_2.useConfig({ location: "c519a9_1" }).enabled;
if (!enabled) {
enabled = "RU" === tmp;
}
return enabled;
};
export const useIsPaymentsBlocked = function useIsPaymentsBlocked() {
return closure_2.useConfig({ location: "dc120b_3" }).enabled;
};
export const getIsPaymentsBlocked = function getIsPaymentsBlocked() {
return closure_2.getConfig({ location: "1ee357_1" }).enabled;
};