decord/beta/source/modules/gateway/GatewayAltEndpointExperiment.tsx

39 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 14394
// Function ID: 14395
// Name: GatewayAltEndpointExperiment
2026-10-07 22:43:51 +00:00
// Dependencies: [1440, 558, 576, 2, 14395]
2026-10-07 22:43:51 +00:00
// Module 14394 (GatewayAltEndpointExperiment)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-07 22:43:51 +00:00
import GatewayAltEndpointCache from "GatewayAltEndpointCache" /* 14395 */;
import ApexExperiment from "ApexExperiment" /* 1440 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let obj2;
let obj = { name: "2026-07-aws-gateway", kind: "user", defaultConfig: { enableAltGateway: false }, variations: obj2 };
obj2 = { 1: null, 2: { enableAltGateway: false } };
obj2[2] = { enableAltGateway: true };
2026-10-02 13:37:24 +00:00
let closure_2 = ApexExperiment.createApexExperiment(obj);
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
let tmp2;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
tmp2 = obj2;
} else {
tmp2 = cResult[1];
}
return closure_2.useConfig(tmp2).enableAltGateway;
}) : ((location) => {
const obj = { location };
return closure_2.useConfig(obj).enableAltGateway;
});
const result = size.fileFinishedImporting("modules/gateway/GatewayAltEndpointExperiment.tsx");
export const USE_ALT_GATEWAY_KEY = GatewayAltEndpointCache.USE_ALT_GATEWAY_KEY;
2026-10-02 13:37:24 +00:00
export const useShouldUseAltGateway = tmp2;