decord/alpha/source/modules/gateway/useRequestGatewaySocket.tsx

69 lines
2.1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 15148
// Function ID: 15149
2026-07-20 16:05:17 +00:00
// Name: useRequestGatewaySocket
2026-10-12 06:59:38 +00:00
// Dependencies: [19, 558, 576, 6071, 9704, 2]
2026-07-20 16:05:17 +00:00
2026-10-13 12:43:34 +00:00
// Module 15148 (useRequestGatewaySocket)
2026-10-12 06:59:38 +00:00
import RequestGatewaySocketAll from "RequestGatewaySocket" /* 9704 */;
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const require = globalThis.__r;
let _require;
2026-07-20 16:05:17 +00:00
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useRequestGatewaySocket(arg0) {
2026-10-03 08:58:59 +00:00
let canUIRequestGatewaySocket;
let closure_0;
_require = arg0;
let obj = require("react");
const cResult = obj.c(4);
2026-10-10 08:08:14 +00:00
const obj2 = canUIRequestGatewaySocket(6071);
2026-10-03 08:58:59 +00:00
canUIRequestGatewaySocket = obj2.useCanUIRequestGatewaySocket();
if (cResult[0] === canUIRequestGatewaySocket) {
let tmp3;
let tmp4;
if (cResult[1] === arg0) {
tmp3 = cResult[2];
tmp4 = cResult[3];
}
const effect = react.useEffect(tmp3, tmp4);
}
const fn = function u() {
if (canUIRequestGatewaySocket) {
let obj = RequestGatewaySocketAll;
obj.setRequestedBy(closure_0);
return () => {
const obj = RequestGatewaySocketAll;
obj.stopRequest(closure_1_0);
};
}
};
const items = [arg0, canUIRequestGatewaySocket];
cResult[0] = canUIRequestGatewaySocket;
cResult[1] = arg0;
cResult[2] = fn;
cResult[3] = items;
tmp4 = items;
tmp3 = fn;
2026-10-08 09:57:35 +00:00
}) : (function useRequestGatewaySocket(arg0) {
2026-10-03 08:58:59 +00:00
let canUIRequestGatewaySocket;
let closure_0 = arg0;
2026-10-10 08:08:14 +00:00
let obj = canUIRequestGatewaySocket(6071);
2026-10-03 08:58:59 +00:00
canUIRequestGatewaySocket = obj.useCanUIRequestGatewaySocket();
2026-07-20 16:05:17 +00:00
const items = [arg0, canUIRequestGatewaySocket];
2026-10-03 08:58:59 +00:00
const effect = react.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (canUIRequestGatewaySocket) {
2026-10-03 08:58:59 +00:00
let obj = RequestGatewaySocketAll;
obj.setRequestedBy(closure_0);
2026-07-20 16:05:17 +00:00
return () => {
2026-10-03 08:58:59 +00:00
const obj = RequestGatewaySocketAll;
obj.stopRequest(closure_1_0);
2026-07-20 16:05:17 +00:00
};
}
}, items);
2026-10-03 08:58:59 +00:00
});
const result = size.fileFinishedImporting("modules/gateway/useRequestGatewaySocket.tsx");
export const useRequestGatewaySocket = tmp2;