import "react";
import { Fragment as e, jsx as t } from "react/jsx-runtime";
import n from "react-markdown";
import { Prism as r } from "react-syntax-highlighter";
//#region src/components/dynamic-form/CodeContent.tsx
var i = {
	"code[class*=\"language-\"]": {
		color: "black",
		background: "none",
		textShadow: "0 1px white",
		fontFamily: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
		fontSize: "1em",
		textAlign: "left",
		whiteSpace: "pre",
		wordSpacing: "normal",
		wordBreak: "normal",
		wordWrap: "normal",
		lineHeight: "1.5",
		MozTabSize: "4",
		OTabSize: "4",
		tabSize: "4",
		WebkitHyphens: "none",
		MozHyphens: "none",
		msHyphens: "none",
		hyphens: "none"
	},
	"pre[class*=\"language-\"]": {
		color: "black",
		textShadow: "0 1px white",
		fontFamily: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
		fontSize: "1em",
		textAlign: "left",
		whiteSpace: "pre",
		wordSpacing: "normal",
		wordBreak: "normal",
		wordWrap: "normal",
		lineHeight: "1.5",
		MozTabSize: "4",
		OTabSize: "4",
		tabSize: "4",
		WebkitHyphens: "none",
		MozHyphens: "none",
		msHyphens: "none",
		hyphens: "none",
		padding: "1em",
		margin: ".5em 0",
		overflow: "auto"
	},
	"pre[class*=\"language-\"]::-moz-selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	"pre[class*=\"language-\"] ::-moz-selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	"code[class*=\"language-\"]::-moz-selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	"code[class*=\"language-\"] ::-moz-selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	"pre[class*=\"language-\"]::selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	"pre[class*=\"language-\"] ::selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	"code[class*=\"language-\"]::selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	"code[class*=\"language-\"] ::selection": {
		textShadow: "none",
		background: "#b3d4fc"
	},
	":not(pre) > code[class*=\"language-\"]": {
		padding: ".1em",
		borderRadius: ".3em",
		whiteSpace: "normal"
	},
	comment: { color: "slategray" },
	prolog: { color: "slategray" },
	doctype: { color: "slategray" },
	cdata: { color: "slategray" },
	punctuation: { color: "#999" },
	namespace: { opacity: .7 },
	property: { color: "#905" },
	tag: { color: "#905" },
	boolean: { color: "#905" },
	number: { color: "#905" },
	constant: { color: "#905" },
	symbol: { color: "#905" },
	deleted: { color: "#905" },
	selector: { color: "#690" },
	"attr-name": { color: "#690" },
	string: { color: "#690" },
	char: { color: "#690" },
	builtin: { color: "#690" },
	inserted: { color: "#690" },
	operator: {
		color: "#9a6e3a",
		background: "hsla(0, 0%, 100%, .5)"
	},
	entity: {
		color: "#9a6e3a",
		background: "hsla(0, 0%, 100%, .5)",
		cursor: "help"
	},
	url: {
		color: "#9a6e3a",
		background: "hsla(0, 0%, 100%, .5)"
	},
	".language-css .token.string": {
		color: "#9a6e3a",
		background: "hsla(0, 0%, 100%, .5)"
	},
	".style .token.string": {
		color: "#9a6e3a",
		background: "hsla(0, 0%, 100%, .5)"
	},
	atrule: { color: "#07a" },
	"attr-value": { color: "#07a" },
	keyword: { color: "#07a" },
	function: { color: "#DD4A68" },
	"class-name": { color: "#DD4A68" },
	regex: { color: "#e90" },
	important: {
		color: "#e90",
		fontWeight: "bold"
	},
	variable: { color: "#e90" },
	bold: { fontWeight: "bold" },
	italic: { fontStyle: "italic" }
}, a = ({ content: a }) => /* @__PURE__ */ t(n, {
	components: {
		p({ children: e, ...n }) {
			return /* @__PURE__ */ t("p", {
				className: "p-4",
				...n,
				children: e
			});
		},
		code({ className: n, children: a, ...o }) {
			let s = /language-(\w+)/.exec(n ?? ""), c = Array.isArray(a) ? a.map((e) => typeof e == "string" ? e : String(e)).join("") : typeof a == "string" ? a : "", l = c.includes("\n");
			return s || l ? /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t(r, {
				style: i,
				language: s?.[1] ?? "text",
				PreTag: "div",
				...o,
				children: c.replace(/\n$/, "")
			}) }) : /* @__PURE__ */ t("code", {
				className: n,
				...o,
				children: a
			});
		}
	},
	children: a
});
//#endregion
export { a as default };
