decord/beta/source/modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

56 lines
1.9 KiB
TypeScript

// Module ID: 7661
// Function ID: 7662
// Name: BlockedPaymentsCountryExperiment
// Dependencies: [1438, 558, 568, 7662, 2]
// Exports: getIsPaymentsBlocked
// Module 7661 (BlockedPaymentsCountryExperiment)
import c from "c" /* 568 */;
import ApexExperiment from "ApexExperiment" /* 1438 */;
import "ReactCompilerGating";
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const obj = { name: "2026-03-block-purchases", kind: "user", defaultConfig: { enabled: false }, variations: null };
let obj2 = { 1: null };
obj2[1] = { enabled: true };
obj.variations = obj2;
let closure_3 = ApexExperiment.createApexExperiment(obj);
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(1);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const obj2 = { location: "c519a9_1" };
cResult[0] = obj2;
let first = obj2;
} else {
first = cResult[0];
}
let enabled = closure_3.useConfig(first).enabled;
if (!enabled) {
enabled = "RU" === tmp3;
}
return enabled;
}) : (() => {
let enabled = closure_3.useConfig({ location: "c519a9_1" }).enabled;
if (!enabled) {
enabled = "RU" === tmp;
}
return enabled;
});
const result = size.fileFinishedImporting("modules/billing/experiments/BlockedPaymentsCountryExperiment.tsx");
export const useBlockedPaymentsConfig = tmp2;
export const useIsPaymentsBlocked = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(1);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const obj2 = { location: "dc120b_3" };
cResult[0] = obj2;
let first = obj2;
} else {
first = cResult[0];
}
return closure_3.useConfig(first).enabled;
}) : (() => closure_3.useConfig({ location: "dc120b_3" }).enabled);
export const getIsPaymentsBlocked = function getIsPaymentsBlocked() {
return closure_3.getConfig({ location: "1ee357_1" }).enabled;
};