decord/beta/source/modules/age_assurance/ShowExpressiveModalSubtitleAltFlag.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

40 lines
1.7 KiB
TypeScript

// Module ID: 7902
// Function ID: 7903
// Name: ShowExpressiveModalSubtitleAltFlag
// Dependencies: [7881, 1435, 7867, 504, 2]
// Exports: shouldShowExpressiveModalSubtitleAlt, useShouldShowExpressiveModalSubtitleAlt
// Module 7902 (ShowExpressiveModalSubtitleAltFlag)
import initialize from "initialize" /* 504 */;
import SafetyHubUtils from "SafetyHubUtils" /* 7867 */;
import SafetyHubStore from "SafetyHubStore" /* 7881 */;
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;
};