mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
48 lines
3.4 KiB
JavaScript
48 lines
3.4 KiB
JavaScript
import { registerServerReference } from "private-next-rsc-server-reference";
|
|
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
|
|
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
|
import { cache as $$reactCache__ } from "react";
|
|
/* __next_internal_action_entry_do_not_use__ {"409ed0cc47abc4e1c64320cf42b74ae60b58c40f00":{"name":"$$RSC_SERVER_ACTION_3"},"601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":{"name":"$$RSC_SERVER_ACTION_2"},"c0951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"},"e03128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}} */ import { Client } from 'components';
|
|
const $$RSC_SERVER_CACHE_0_INNER = async function // Should be 1 110000 0, which is "e0" in hex (counts as two params,
|
|
// because of the encrypted bound args param)
|
|
fn1([$$ACTION_ARG_0, $$ACTION_ARG_1], c) {
|
|
return $$ACTION_ARG_0 + $$ACTION_ARG_1 + c;
|
|
};
|
|
export var $$RSC_SERVER_CACHE_0 = $$reactCache__(function fn1() {
|
|
return $$cache__("default", "e03128060c414d59f8552e4788b846c0d2b7f74743", 2, $$RSC_SERVER_CACHE_0_INNER, Array.prototype.slice.call(arguments, 0, 2));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_0, "e03128060c414d59f8552e4788b846c0d2b7f74743", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_0, "name", {
|
|
value: "fn1"
|
|
});
|
|
const $$RSC_SERVER_CACHE_1_INNER = async function // Should be 1 100000 0, which is "c0" in hex (counts as one param,
|
|
// because of the encrypted bound args param)
|
|
fn2([$$ACTION_ARG_0, $$ACTION_ARG_1]) {
|
|
return $$ACTION_ARG_0 + $$ACTION_ARG_1;
|
|
};
|
|
export var $$RSC_SERVER_CACHE_1 = $$reactCache__(function fn2() {
|
|
return $$cache__("default", "c0951c375b4a6a6e89d67b743ec5808127cfde405d", 2, $$RSC_SERVER_CACHE_1_INNER, Array.prototype.slice.call(arguments, 0, 1));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_1, "c0951c375b4a6a6e89d67b743ec5808127cfde405d", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_1, "name", {
|
|
value: "fn2"
|
|
});
|
|
export const $$RSC_SERVER_ACTION_2 = async function // Should be 0 110000 0, which is "60" in hex (counts as two params,
|
|
// because of the encrypted bound args param)
|
|
fn3($$ACTION_CLOSURE_BOUND, c) {
|
|
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", $$ACTION_CLOSURE_BOUND);
|
|
return $$ACTION_ARG_0 + $$ACTION_ARG_1 + c;
|
|
};
|
|
registerServerReference($$RSC_SERVER_ACTION_2, "601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", null);
|
|
export const $$RSC_SERVER_ACTION_3 = async function // Should be 0 100000 0, which is "40" in hex (counts as one param,
|
|
// because of the encrypted bound args param)
|
|
fn4($$ACTION_CLOSURE_BOUND) {
|
|
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("409ed0cc47abc4e1c64320cf42b74ae60b58c40f00", $$ACTION_CLOSURE_BOUND);
|
|
return $$ACTION_ARG_0 + $$ACTION_ARG_1;
|
|
};
|
|
registerServerReference($$RSC_SERVER_ACTION_3, "409ed0cc47abc4e1c64320cf42b74ae60b58c40f00", null);
|
|
export async function Component(a) {
|
|
const b = 1;
|
|
return <Client fn1={$$RSC_SERVER_CACHE_0.bind(null, encryptActionBoundArgs("e03128060c414d59f8552e4788b846c0d2b7f74743", a, b))} fn2={$$RSC_SERVER_CACHE_1.bind(null, encryptActionBoundArgs("c0951c375b4a6a6e89d67b743ec5808127cfde405d", a, b))} fn3={$$RSC_SERVER_ACTION_2.bind(null, encryptActionBoundArgs("601c36b06e398c97abe5d5d7ae8c672bfddf4e1b91", a, b))} fn4={$$RSC_SERVER_ACTION_3.bind(null, encryptActionBoundArgs("409ed0cc47abc4e1c64320cf42b74ae60b58c40f00", a, b))}/>;
|
|
}
|