import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
import { C as S, b as C, w } from "./useEditorCore-BXz-UXPd.js";
import { t as T } from "./dist-HO0vjY5Z.js";
import { A as E, D, h as O, k } from "./keys-B8K7Z7Ef.js";
import { t as A } from "./useI18n-CBbStVlD.js";
import { t as j } from "./createLucideIcon-XgXOJ05E.js";
import { a as ee, i as te, n as M, r as N, t as P } from "./RichTextEditorContent-B_KCY6T1.js";
import { t as ne } from "./loader-circle-Rz_4vJLH.js";
import { t as re } from "./scan-line-wanvAFDr.js";
import { n as ie, r as ae, t as oe } from "./text-align-end-Bkq8oBrD.js";
import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
import { a as I, o as L, s as R } from "./styleConstants-lGobwiLH.js";
import { t as z } from "./usePopoverRoot-62PlZQQ3.js";
var B = j("list-ordered", [
	["path", {
		d: "M11 5h10",
		key: "1cz7ny"
	}],
	["path", {
		d: "M11 12h10",
		key: "1438ji"
	}],
	["path", {
		d: "M11 19h10",
		key: "11t30w"
	}],
	["path", {
		d: "M4 4h1v5",
		key: "10yrso"
	}],
	["path", {
		d: "M4 9h2",
		key: "r1h2o0"
	}],
	["path", {
		d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
		key: "xtkcd5"
	}]
]), V = j("list", [
	["path", {
		d: "M3 5h.01",
		key: "18ugdj"
	}],
	["path", {
		d: "M3 12h.01",
		key: "nlz23k"
	}],
	["path", {
		d: "M3 19h.01",
		key: "noohij"
	}],
	["path", {
		d: "M8 5h13",
		key: "1pao27"
	}],
	["path", {
		d: "M8 12h13",
		key: "1za7za"
	}],
	["path", {
		d: "M8 19h13",
		key: "m83p4d"
	}]
]), H = j("remove-formatting", [
	["path", {
		d: "M4 7V4h16v3",
		key: "9msm58"
	}],
	["path", {
		d: "M5 20h6",
		key: "1h6pxn"
	}],
	["path", {
		d: "M13 4 8 20",
		key: "kqq6aj"
	}],
	["path", {
		d: "m15 15 5 5",
		key: "me55sn"
	}],
	["path", {
		d: "m20 15-5 5",
		key: "11p7ol"
	}]
]), U = j("smile", [
	["circle", {
		cx: "12",
		cy: "12",
		r: "10",
		key: "1mglay"
	}],
	["path", {
		d: "M8 14s1.5 2 4 2 4-2 4-2",
		key: "1y1vjs"
	}],
	["line", {
		x1: "9",
		x2: "9.01",
		y1: "9",
		y2: "9",
		key: "yxxnd0"
	}],
	["line", {
		x1: "15",
		x2: "15.01",
		y1: "9",
		y2: "9",
		key: "1p4y9e"
	}]
]), W = j("strikethrough", [
	["path", {
		d: "M16 4H9a3 3 0 0 0-2.83 4",
		key: "43sutm"
	}],
	["path", {
		d: "M14 12a4 4 0 0 1 0 8H6",
		key: "nlfj13"
	}],
	["line", {
		x1: "4",
		x2: "20",
		y1: "12",
		y2: "12",
		key: "1e0a9i"
	}]
]), G = j("subscript", [
	["path", {
		d: "m4 5 8 8",
		key: "1eunvl"
	}],
	["path", {
		d: "m12 5-8 8",
		key: "1ah0jp"
	}],
	["path", {
		d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
		key: "e8ta8j"
	}]
]), K = j("superscript", [
	["path", {
		d: "m4 19 8-8",
		key: "hr47gm"
	}],
	["path", {
		d: "m12 19-8-8",
		key: "1dhhmo"
	}],
	["path", {
		d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
		key: "1dfcux"
	}]
]), q = j("underline", [["path", {
	d: "M6 4v6a6 6 0 0 0 12 0V4",
	key: "9kb039"
}], ["line", {
	x1: "4",
	x2: "20",
	y1: "20",
	y2: "20",
	key: "nun2al"
}]]), J = [
	"aria-label",
	"title",
	"aria-expanded"
], Y = ["aria-label"], se = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, ce = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, le = ["aria-label", "onClick"], ue = /* @__PURE__ */ s({
	__name: "EmojiPickerDropdown",
	emits: ["insert"],
	setup(t, { emit: n }) {
		let a = n, { categories: s, isOpen: m, toggle: h, close: y } = S(), { t: x, format: C } = A(), E = i(null), D = i(null);
		w(E, l(() => m.value)), T(D, () => {
			m.value && y();
		});
		function O(e) {
			a("insert", e), y();
		}
		return (t, n) => (e(), d("div", {
			ref_key: "rootRef",
			ref: D,
			class: "tpl:relative"
		}, [u("button", {
			type: "button",
			class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(m) }]),
			"aria-label": g(x).paragraphEditor.insertEmoji,
			title: g(x).paragraphEditor.insertEmoji,
			"aria-expanded": g(m),
			"aria-haspopup": "dialog",
			"aria-controls": "tpl-emoji-picker",
			onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
		}, [b(g(U), {
			size: 16,
			"stroke-width": 2
		})], 10, J), g(m) ? (e(), d("div", {
			key: 0,
			id: "tpl-emoji-picker",
			ref_key: "pickerRef",
			ref: E,
			role: "dialog",
			"aria-modal": "false",
			"aria-label": g(x).paragraphEditor.insertEmoji,
			tabindex: "-1",
			class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-lg",
			onKeydown: n[1] ||= _(c((...e) => g(y) && g(y)(...e), ["stop", "prevent"]), ["esc"])
		}, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
			key: t.key,
			class: "tpl:mb-2 tpl:last:mb-0"
		}, [u("div", se, v(g(x).emoji[t.key]), 1), u("div", ce, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
			key: t,
			type: "button",
			"aria-label": g(C)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
			class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
			onClick: (e) => O(t)
		}, v(t), 9, le))), 128))])]))), 128))], 40, Y)) : p("", !0)], 512));
	}
}), de = [
	"aria-label",
	"title",
	"aria-pressed"
], X = /* @__PURE__ */ s({
	__name: "ToolbarIconButton",
	props: {
		icon: {},
		label: {},
		active: { type: Boolean },
		strokeWidth: {},
		size: {}
	},
	setup(n) {
		return (r, i) => (e(), d("button", {
			type: "button",
			class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": n.active }]),
			"aria-label": n.label,
			title: n.label,
			"aria-pressed": n.active ? "true" : "false"
		}, [(e(), h(t(n.icon), {
			size: n.size ?? 16,
			"stroke-width": n.strokeWidth ?? 2
		}, null, 8, ["size", "stroke-width"]))], 10, de));
	}
}), fe = {}, pe = {
	class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
	"aria-hidden": "true"
};
function me(t, n) {
	return e(), d("span", pe);
}
var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
	"value",
	"aria-label",
	"title"
], ge = { value: "" }, _e = ["value"], Q = /* @__PURE__ */ s({
	__name: "ToolbarSelect",
	props: {
		modelValue: {},
		options: {},
		label: {},
		placeholder: {},
		widthClass: {}
	},
	emits: ["update:modelValue"],
	setup(t, { emit: n }) {
		let i = n;
		function a(e) {
			i("update:modelValue", e.target.value);
		}
		function s(e) {
			return typeof e == "string" ? e : e.value;
		}
		function c(e) {
			return typeof e == "string" ? e : e.label;
		}
		return (n, i) => (e(), d("select", {
			class: o(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", t.widthClass ?? "tpl:w-20"]),
			value: t.modelValue,
			"aria-label": t.label,
			title: t.label,
			onChange: a
		}, [u("option", ge, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
			key: s(t),
			value: s(t)
		}, v(c(t)), 9, _e))), 128))], 42, he));
	}
}), ve = ["data-tpl-theme", "aria-label"], ye = { class: "tpl:flex tpl:items-center tpl:gap-1" }, be = { class: "tpl:relative" }, xe = [
	"value",
	"aria-label",
	"title"
], Se = { class: "tpl:relative" }, Ce = [
	"value",
	"aria-label",
	"title"
], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, we = ["aria-label", "title"], Te = {
	key: 1,
	class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
}, Ee = /* @__PURE__ */ s({
	__name: "ParagraphToolbar",
	props: {
		editor: {},
		toolbarPosition: {},
		isLoading: { type: Boolean },
		canRequestMergeTag: { type: Boolean }
	},
	emits: ["open-link-dialog", "add-merge-tag"],
	setup(t, { emit: n }) {
		let r = t, i = n, o = x(D, null), s = x(k, null), c = E(O, "ParagraphToolbar"), l = z(), { t: _ } = A(), S = c.fonts;
		function C(e) {
			r.editor?.chain().focus().insertContent(e).run();
		}
		function w(e) {
			return r.editor?.getAttributes("textStyle")[e] || "";
		}
		function T(e) {
			let t = r.editor?.chain().focus();
			e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
		}
		function j(e) {
			let t = r.editor?.chain().focus();
			e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
		}
		function M(e) {
			let t = r.editor?.chain().focus();
			e ? t?.setColor(e).run() : t?.unsetColor().run();
		}
		function P() {
			return r.editor?.getAttributes("paragraph").lineHeight || "";
		}
		function F(e) {
			let t = r.editor?.chain().focus();
			e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
		}
		function U(e) {
			let t = r.editor?.chain().focus();
			e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
		}
		function J() {
			return r.editor?.getAttributes("highlight").color || "";
		}
		function Y(e) {
			let t = r.editor?.chain().focus();
			e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
		}
		return (n, r) => g(l) ? (e(), h(y, {
			key: 0,
			to: g(l)
		}, [u("div", {
			"data-tpl-theme": g(s),
			role: "toolbar",
			"aria-label": g(_).paragraphEditor.toolbar,
			class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
			style: m({
				...g(o),
				top: `${t.toolbarPosition.top}px`,
				left: `${t.toolbarPosition.left}px`,
				transform: "translateY(-100%)",
				flexDirection: "column"
			})
		}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", ye, [
			b(Q, {
				"model-value": w("fontFamily"),
				options: g(S),
				label: g(_).paragraphEditor.fontFamily,
				placeholder: g(_).paragraphEditor.defaultFont,
				"width-class": "tpl:w-32",
				"onUpdate:modelValue": T
			}, null, 8, [
				"model-value",
				"options",
				"label",
				"placeholder"
			]),
			b(Q, {
				"model-value": w("fontSize"),
				options: g(I),
				label: g(_).paragraphEditor.fontSize,
				placeholder: g(_).paragraphEditor.defaultSize,
				"width-class": "tpl:w-20",
				"onUpdate:modelValue": j
			}, null, 8, [
				"model-value",
				"options",
				"label",
				"placeholder"
			]),
			b(Z),
			u("div", be, [u("input", {
				type: "color",
				class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
				value: w("color") || g("#000000"),
				"aria-label": g(_).paragraphEditor.textColor,
				title: g(_).paragraphEditor.textColor,
				onInput: r[0] ||= (e) => M(e.target.value)
			}, null, 40, xe)]),
			u("div", Se, [u("input", {
				type: "color",
				class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
				style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
				value: J() || g("#ffff00"),
				"aria-label": g(_).paragraphEditor.highlightColor,
				title: g(_).paragraphEditor.highlightColor,
				onInput: r[1] ||= (e) => Y(e.target.value)
			}, null, 44, Ce)]),
			b(Z),
			b(X, {
				icon: g(ee),
				label: g(_).paragraphEditor.bold,
				active: t.editor.isActive("bold"),
				"stroke-width": 2.5,
				onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(X, {
				icon: g(te),
				label: g(_).paragraphEditor.italic,
				active: t.editor.isActive("italic"),
				onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(X, {
				icon: g(q),
				label: g(_).paragraphEditor.underline,
				active: t.editor.isActive("underline"),
				onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(X, {
				icon: g(W),
				label: g(_).paragraphEditor.strikethrough,
				active: t.editor.isActive("strike"),
				onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(Z),
			b(X, {
				icon: g(G),
				label: g(_).paragraphEditor.subscript,
				active: t.editor.isActive("subscript"),
				onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(X, {
				icon: g(K),
				label: g(_).paragraphEditor.superscript,
				active: t.editor.isActive("superscript"),
				onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(Z),
			b(X, {
				icon: g(N),
				label: g(_).paragraphEditor.addLink,
				active: t.editor.isActive("link"),
				onClick: r[8] ||= (e) => i("open-link-dialog")
			}, null, 8, [
				"icon",
				"label",
				"active"
			])
		]), u("div", $, [
			b(X, {
				icon: g(V),
				label: g(_).paragraphEditor.bulletList,
				active: t.editor.isActive("bulletList"),
				onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(X, {
				icon: g(B),
				label: g(_).paragraphEditor.numberedList,
				active: t.editor.isActive("orderedList"),
				onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(Z),
			b(X, {
				icon: g(ie),
				label: g(_).paragraphEditor.alignLeft,
				active: t.editor.isActive({ textAlign: "left" }),
				onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(X, {
				icon: g(ae),
				label: g(_).paragraphEditor.alignCenter,
				active: t.editor.isActive({ textAlign: "center" }),
				onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(X, {
				icon: g(oe),
				label: g(_).paragraphEditor.alignRight,
				active: t.editor.isActive({ textAlign: "right" }),
				onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
			}, null, 8, [
				"icon",
				"label",
				"active"
			]),
			b(Z),
			b(Q, {
				"model-value": P(),
				options: g(R),
				label: g(_).paragraphEditor.lineHeight,
				placeholder: "LH",
				"width-class": "tpl:w-16",
				"onUpdate:modelValue": F
			}, null, 8, [
				"model-value",
				"options",
				"label"
			]),
			b(Q, {
				"model-value": w("letterSpacing"),
				options: g(L),
				label: g(_).paragraphEditor.letterSpacing,
				placeholder: "LS",
				"width-class": "tpl:w-20",
				"onUpdate:modelValue": U
			}, null, 8, [
				"model-value",
				"options",
				"label"
			]),
			b(Z),
			b(X, {
				icon: g(H),
				label: g(_).paragraphEditor.clearFormatting,
				onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
			}, null, 8, ["icon", "label"]),
			b(Z),
			b(ue, { onInsert: C }),
			t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
				type: "button",
				class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
				"aria-label": g(_).mergeTag.insert,
				title: g(_).mergeTag.insert,
				onClick: r[15] ||= (e) => i("add-merge-tag")
			}, [b(g(re), {
				size: 16,
				"stroke-width": 2
			}), a(" " + v(g(_).mergeTag.insert), 1)], 8, we)], 64)) : p("", !0)
		])], 64)) : (e(), d("div", Te, [b(g(ne), {
			class: "tpl-spinner",
			size: 14,
			"stroke-width": 2
		}), a(" " + v(g(_).errors.editorLoading), 1)]))], 12, ve)], 8, ["to"])) : p("", !0);
	}
}), De = { class: "tpl-text-editor-wrapper tpl:relative" }, Oe = /* @__PURE__ */ s({
	__name: "ParagraphEditor",
	props: {
		block: {},
		toolbarPosition: {}
	},
	emits: ["done"],
	setup(t, { emit: r }) {
		let i = t, a = r, o = z(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: x, closeLinkDialog: S, handleLinkKeydown: w, handleAddMergeTag: T } = C({
			blockId: () => i.block.id,
			blockContent: () => i.block.content,
			onDone: () => a("done"),
			editorName: "ParagraphEditor",
			async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
				let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
					import("./dist-T-ORzNfM.js").then((e) => e.r),
					import("./dist-BygsE-n3.js"),
					import("./dist-CDtcJMB2.js"),
					import("./dist-DnGTaPRX.js"),
					import("./dist-BTgujVMy.js"),
					import("./dist-BS5Oi67L.js"),
					import("./dist-CDZCyoRy.js"),
					import("./dist-v-O2Subd.js"),
					import("./dist-BySzGkeC.js"),
					import("./dist-D7JUZ2Kd.js"),
					import("./dist-BtDBsF3N.js"),
					import("./extensions-BmGiz8Oo.js")
				]);
				return {
					TiptapEditor: a,
					EC: s,
					extensions: [
						c.configure({
							heading: !1,
							codeBlock: !1,
							blockquote: !1,
							horizontalRule: !1
						}),
						u,
						d,
						f,
						l.configure({
							openOnClick: !1,
							HTMLAttributes: {
								target: "_blank",
								rel: "noopener noreferrer"
							}
						}),
						p.configure({ types: ["paragraph"] }),
						m,
						h,
						g,
						_.configure({ multicolor: !0 }),
						x,
						S,
						C,
						v.configure({
							mergeTags: e,
							syntax: t
						}),
						b.configure({ syntax: t }),
						...r && n && e.length > 0 ? [y.configure({
							mergeTags: e,
							char: n,
							emptyText: i,
							popoverRoot: o
						})] : []
					]
				};
			}
		});
		return (r, i) => (e(), d("div", De, [
			b(Ee, {
				editor: g(s),
				"toolbar-position": t.toolbarPosition,
				"is-loading": g(l),
				"can-request-merge-tag": g(_),
				onOpenLinkDialog: g(v),
				onAddMergeTag: g(T)
			}, null, 8, [
				"editor",
				"toolbar-position",
				"is-loading",
				"can-request-merge-tag",
				"onOpenLinkDialog",
				"onAddMergeTag"
			]),
			b(P, {
				editor: g(s),
				"editor-content": g(c),
				"is-loading": g(l),
				"init-error": g(u),
				onRetry: g(f)
			}, null, 8, [
				"editor",
				"editor-content",
				"is-loading",
				"init-error",
				"onRetry"
			]),
			b(M, {
				visible: g(p),
				"is-editing-link": g(s)?.isActive("link") ?? !1,
				"dialog-ref": g(h),
				"onUpdate:dialogRef": i[0] ||= (e) => n(h) ? h.value = e : null,
				"link-url": g(m),
				"onUpdate:linkUrl": i[1] ||= (e) => n(m) ? m.value = e : null,
				onClose: g(S),
				onInsert: g(y),
				onRemove: g(x),
				onKeydown: g(w)
			}, null, 8, [
				"visible",
				"is-editing-link",
				"dialog-ref",
				"link-url",
				"onClose",
				"onInsert",
				"onRemove",
				"onKeydown"
			])
		]));
	}
});
//#endregion
export { Oe as default };
