decord/beta/source/modules/auth/usePromoEmailOptInLabel.tsx

60 lines
1.8 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 16411
// Function ID: 16412
// Name: usePromoEmailOptInLabel
2026-10-12 16:32:48 +00:00
// Dependencies: [558, 576, 16412, 1126, 2]
2026-10-12 16:32:48 +00:00
// Module 16411 (usePromoEmailOptInLabel)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-07 22:43:51 +00:00
import intl2 from "intl" /* 1126 */;
2026-10-12 16:32:48 +00:00
import RegistrationEmailOptInCopyExperimentDefault from "RegistrationEmailOptInCopyExperiment" /* 16412 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-12 16:32:48 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function usePromoEmailOptInLabel(arg0, location) {
2026-10-02 13:37:24 +00:00
let tmp4;
const obj = react;
const cResult = obj.c(5);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
tmp4 = obj2;
} else {
tmp4 = cResult[1];
}
const obj3 = RegistrationEmailOptInCopyExperimentDefault;
const trackingCopy = obj3.useConfig(tmp4).trackingCopy;
if (cResult[2] === arg0) {
let tmp5;
if (cResult[3] === trackingCopy) {
tmp5 = cResult[4];
}
return tmp5;
}
2026-10-07 22:43:51 +00:00
const intl = tmp(1126).intl;
2026-10-02 13:37:24 +00:00
let LSoXK5 = arg0;
const string = intl.string;
if (trackingCopy) {
2026-10-07 22:43:51 +00:00
LSoXK5 = tmp(1126).t.LSoXK5;
2026-10-02 13:37:24 +00:00
}
const stringResult = string(LSoXK5);
cResult[2] = arg0;
cResult[3] = trackingCopy;
cResult[4] = stringResult;
tmp5 = stringResult;
2026-10-12 16:32:48 +00:00
}) : (function usePromoEmailOptInLabel(arg0, location) {
2026-10-02 13:37:24 +00:00
let LSoXK5 = arg0;
2026-10-01 14:13:23 +00:00
const obj = RegistrationEmailOptInCopyExperimentDefault;
2026-10-02 13:37:24 +00:00
const obj2 = { location };
2026-10-01 14:13:23 +00:00
const trackingCopy = obj.useConfig(obj2).trackingCopy;
const intl = intl2.intl;
const string = intl.string;
if (trackingCopy) {
LSoXK5 = intl2.t.LSoXK5;
}
2026-10-01 14:13:23 +00:00
return string(LSoXK5);
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/auth/usePromoEmailOptInLabel.tsx");
export const usePromoEmailOptInLabel = tmp2;