decord/alpha/source/modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

30 lines
1.2 KiB
TypeScript

// Module ID: 6832
// Function ID: 6833
// Name: BlockedPaymentsCountryExperiment
// Dependencies: [1434, 6833, 2]
// Exports: getIsPaymentsBlocked, useBlockedPaymentsConfig, useIsPaymentsBlocked
// Module 6832 (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;
};