decord/beta/source/modules/age_assurance/ShowExpressiveModalSubtitleAltFlag.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

71 lines
2.5 KiB
TypeScript

// Module ID: 8728
// Function ID: 8729
// Name: ShowExpressiveModalSubtitleAltFlag
// Dependencies: [8707, 1438, 558, 568, 8695, 504, 2]
// Exports: shouldShowExpressiveModalSubtitleAlt
// Module 8728 (ShowExpressiveModalSubtitleAltFlag)
import c from "c" /* 568 */;
import SafetyHubUtils from "SafetyHubUtils" /* 8695 */;
import SafetyHubStore from "SafetyHubStore" /* 8707 */;
const initialize = tmp(504);
require = fn;
const ApexExperiment = fn(1438);
let obj2 = { kind: "user", name: "2026-08-show-expressive-modal-subtitle-alt", defaultConfig: { enabled: false }, variations: null };
let obj3 = { 1: null };
obj3[1] = { enabled: true };
obj2.variations = obj3;
let closure_3 = ApexExperiment.createApexExperiment(obj2);
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/age_assurance/ShowExpressiveModalSubtitleAltFlag.tsx");
export const useShouldShowExpressiveModalSubtitleAlt = ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
const cResult = c.c(4);
const isSuspendedUser = SafetyHubUtils.useIsSuspendedUser();
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [SafetyHubStore];
const fn = function n() {
return showExpressiveModalSubtitleAlt.getShowExpressiveModalSubtitleAlt();
};
cResult[0] = items;
cResult[1] = fn;
tmp5 = items;
tmp6 = fn;
} else {
[tmp5, tmp6] = cResult;
}
const stateFromStores = initialize.useStateFromStores(tmp5, tmp6);
if (cResult[2] !== location) {
const obj3 = { location };
cResult[2] = location;
cResult[3] = obj3;
let tmp9 = obj3;
} else {
tmp9 = cResult[3];
}
let enabled = closure_3.useConfig(tmp9).enabled;
if (isSuspendedUser) {
enabled = stateFromStores;
}
return enabled;
}) : ((location) => {
const isSuspendedUser = SafetyHubUtils.useIsSuspendedUser();
const items = [SafetyHubStore];
const stateFromStores = initialize.useStateFromStores(items, () => showExpressiveModalSubtitleAlt.getShowExpressiveModalSubtitleAlt());
let enabled = closure_3.useConfig({ location }).enabled;
if (isSuspendedUser) {
enabled = stateFromStores;
}
return enabled;
});
export const shouldShowExpressiveModalSubtitleAlt = function shouldShowExpressiveModalSubtitleAlt(location) {
if (obj.isCurrentUserSuspended()) {
let enabled = SafetyHubStore.getShowExpressiveModalSubtitleAlt();
} else {
const obj2 = { location };
enabled = closure_3.getConfig(obj2).enabled;
}
return enabled;
};