decord/source/modules/age_assurance/ShowExpressiveModalSubtitleAltFlag.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

40 lines
1.7 KiB
TypeScript

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