import { jsx } from "react/jsx-runtime";
//#region src/modules/code-block/ssr-fallback.tsx
/**
* SSR / Suspense fallback for the lazy CodeBlock renderer.
*
* Determinism requirement: identical output server-side and client-side
* to avoid hydration mismatches. No Date, no random, no client-only API.
*
* Renders a placeholder `<pre>` shell. The lazy renderer replaces it with
* shiki-tokenized output once the chunk resolves. Even without code text
* (the fallback runs before props are routed through the lazy boundary),
* the empty pre keeps layout stable.
*/
function CodeBlockSsrFallback() {
	return /* @__PURE__ */ jsx("pre", {
		className: "rich-codeblock-skeleton",
		"data-rich-skeleton": "codeblock",
		children: /* @__PURE__ */ jsx("code", {})
	});
}
//#endregion
//#region src/modules/code-block/module.tsx
var codeBlockModule = {
	name: "code-block",
	lazyRenderers: { CodeBlock: () => import("./modules/code-block/renderer.mjs").then((m) => ({ default: m.CodeBlockRenderer })) },
	ssrFallback: { CodeBlock: /* @__PURE__ */ jsx(CodeBlockSsrFallback, {}) }
};
//#endregion
export { codeBlockModule as t };
