decord/alpha/source/modules/age_assurance/ShowExpressiveModalSubtitleAltFlag.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

40 lines
1.7 KiB
TypeScript

// Module ID: 8798
// Function ID: 8799
// Name: ShowExpressiveModalSubtitleAltFlag
// Dependencies: [8777, 1434, 8765, 504, 2]
// Exports: shouldShowExpressiveModalSubtitleAlt, useShouldShowExpressiveModalSubtitleAlt
// Module 8798 (ShowExpressiveModalSubtitleAltFlag)
import initialize from "initialize" /* 504 */;
import SafetyHubUtils from "SafetyHubUtils" /* 8765 */;
import SafetyHubStore from "SafetyHubStore" /* 8777 */;
require = fn;
const ApexExperiment = fn(1434);
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;
};