decord/alpha/source/modules/age_assurance/ShowExpressiveModalSubtitleAltFlag.tsx
github-actions 52331fb8ae chore: update source for alpha 349.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
2026-09-30 07:29:52 +00:00

40 lines
1.7 KiB
TypeScript

// Module ID: 8099
// Function ID: 8100
// Name: ShowExpressiveModalSubtitleAltFlag
// Dependencies: [8076, 1435, 8062, 504, 2]
// Exports: shouldShowExpressiveModalSubtitleAlt, useShouldShowExpressiveModalSubtitleAlt
// Module 8099 (ShowExpressiveModalSubtitleAltFlag)
import initialize from "initialize" /* 504 */;
import SafetyHubUtils from "SafetyHubUtils" /* 8062 */;
import SafetyHubStore from "SafetyHubStore" /* 8076 */;
require = fn;
const ApexExperiment = fn(1435);
let obj2 = { kind: "user", name: "2026-08-show-expressive-modal-subtitle-alt", defaultConfig: { enabled: false }, variations: null };
const obj3 = { 1: null };
obj3[1] = { enabled: true };
obj2.variations = obj3;
let closure_3 = ApexExperiment.createApexExperiment(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/age_assurance/ShowExpressiveModalSubtitleAltFlag.tsx");
export const useShouldShowExpressiveModalSubtitleAlt = function useShouldShowExpressiveModalSubtitleAlt(age_verification_expressive_v2_modal) {
const isSuspendedUser = SafetyHubUtils.useIsSuspendedUser();
const items = [SafetyHubStore];
const stateFromStores = initialize.useStateFromStores(items, () => showExpressiveModalSubtitleAlt.getShowExpressiveModalSubtitleAlt());
let enabled = closure_3.useConfig({ location: age_verification_expressive_v2_modal }).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;
};