@dialpad/dialtone 9.186.0 → 9.187.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/css/dialtone-default-theme.css +3 -0
  2. package/dist/css/dialtone-default-theme.min.css +1 -1
  3. package/dist/css/dialtone.css +3 -0
  4. package/dist/css/dialtone.min.css +1 -1
  5. package/dist/tokens/doc.json +113845 -113845
  6. package/dist/vue3/component-documentation.json +1 -1
  7. package/dist/vue3/components/rich_text_editor/extensions/custom_link/autolink.d.ts.map +1 -1
  8. package/dist/vue3/components/rich_text_editor/extensions/link_phone_numbers/link_phone_numbers.d.ts +3 -0
  9. package/dist/vue3/components/rich_text_editor/extensions/link_phone_numbers/link_phone_numbers.d.ts.map +1 -0
  10. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -872
  11. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  12. package/dist/vue3/dialtone-vue.cjs +1 -1
  13. package/dist/vue3/dialtone-vue.js +2 -2
  14. package/dist/vue3/lib/editor/editor.cjs +1 -1
  15. package/dist/vue3/lib/editor/editor.js +1 -1
  16. package/dist/vue3/lib/message-input/index.cjs +1 -1
  17. package/dist/vue3/lib/message-input/index.js +1 -1
  18. package/dist/vue3/lib/message-input/message-input.cjs +1 -1
  19. package/dist/vue3/lib/message-input/message-input.js +1 -1
  20. package/dist/vue3/lib/rich-text-editor/index.cjs +1 -1
  21. package/dist/vue3/lib/rich-text-editor/index.js +1 -1
  22. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +1 -1
  23. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +1 -1
  24. package/dist/vue3/{message_input-DO6pV_GG.js → message_input-B47LB7C8.js} +2 -2
  25. package/dist/vue3/{message_input-DO6pV_GG.js.map → message_input-B47LB7C8.js.map} +1 -1
  26. package/dist/vue3/{message_input-BiCHkV9g.cjs → message_input-BCIq_1AD.cjs} +2 -2
  27. package/dist/vue3/{message_input-BiCHkV9g.cjs.map → message_input-BCIq_1AD.cjs.map} +1 -1
  28. package/dist/vue3/recipes/conversation_view/editor/editor.vue.d.ts +1 -870
  29. package/dist/vue3/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  30. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.d.ts +1 -870
  31. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  32. package/dist/vue3/{rich_text_editor-DYu2R0kw.js → rich_text_editor-CNFb6tIx.js} +589 -540
  33. package/dist/vue3/rich_text_editor-CNFb6tIx.js.map +1 -0
  34. package/dist/vue3/{rich_text_editor-FduHYl-G.cjs → rich_text_editor-DRytK1_9.cjs} +5 -5
  35. package/dist/vue3/rich_text_editor-DRytK1_9.cjs.map +1 -0
  36. package/package.json +3 -3
  37. package/dist/vue3/rich_text_editor-DYu2R0kw.js.map +0 -1
  38. package/dist/vue3/rich_text_editor-FduHYl-G.cjs.map +0 -1
@@ -12,112 +12,112 @@ import _ from "./lib/popover/popover.js";
12
12
  import v from "./lib/emoji/emoji.js";
13
13
  import y from "./lib/input/input.js";
14
14
  import { Editor as b, EditorContent as x, NodeViewWrapper as S, VueNodeViewRenderer as C, VueRenderer as w, nodeViewProps as T } from "./node_modules/@tiptap/vue-3.js";
15
- import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as ee, RICH_TEXT_EDITOR_OUTPUT_FORMATS as te, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as E } from "./lib/rich-text-editor/rich-text-editor-constants.js";
16
- import { t as ne } from "./markdownRenderer-D_P94RyM.js";
17
- import { Fragment as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createTextVNode as re, createVNode as M, defineComponent as ie, h as ae, markRaw as oe, mergeProps as se, nextTick as ce, normalizeClass as le, onBeforeUnmount as ue, onMounted as de, openBlock as N, ref as fe, renderList as pe, resolveComponent as P, resolveDynamicComponent as me, toDisplayString as F, vShow as he, withCtx as I, withDirectives as ge, withKeys as _e, withModifiers as ve } from "vue";
18
- import { emojiPattern as ye } from "regex-combined-emojis";
19
- import { DtIconLock as be } from "@dialpad/dialtone-icons/vue3";
20
- import { Extension as xe, InputRule as Se, Mark as Ce, Node as we, combineTransactionSteps as Te, findChildrenInRange as Ee, getChangedRanges as De, getMarksBetween as Oe, getText as ke, getTextSerializersFromSchema as Ae, isTextSelection as je, mergeAttributes as L, nodeInputRule as Me, nodePasteRule as Ne, posToDOMRect as Pe } from "@tiptap/core";
21
- import { NodeSelection as Fe, Plugin as Ie, PluginKey as R } from "@tiptap/pm/state";
22
- import { CellSelection as Le } from "@tiptap/pm/tables";
23
- import Re from "@tiptap/extension-blockquote";
24
- import ze from "@tiptap/extension-code-block";
25
- import Be from "@tiptap/extension-code";
26
- import Ve from "@tiptap/extension-document";
27
- import { Gapcursor as He, Placeholder as Ue, UndoRedo as We } from "@tiptap/extensions";
28
- import Ge from "@tiptap/extension-hard-break";
29
- import Ke from "@tiptap/extension-paragraph";
30
- import qe from "@tiptap/extension-bold";
31
- import { BulletList as Je, ListItem as Ye, OrderedList as Xe } from "@tiptap/extension-list";
32
- import Ze from "@tiptap/extension-italic";
33
- import Qe from "@tiptap/extension-link";
34
- import $e from "@tiptap/extension-strike";
35
- import et from "@tiptap/extension-underline";
36
- import tt from "@tiptap/extension-text";
37
- import nt from "@tiptap/extension-text-align";
38
- import { Table as rt, TableCell as it, TableHeader as at, TableRow as ot } from "@tiptap/extension-table";
39
- import { TextStyle as st, TextStyleKit as ct } from "@tiptap/extension-text-style";
40
- import lt from "@tiptap/suggestion";
41
- import ut from "@tiptap/extension-image";
42
- import dt from "@tiptap/extension-mention";
43
- import ft from "@dialpad/dialtone-icons/vue3/hash";
44
- import pt from "@dialpad/dialtone-icons/vue3/lock";
45
- import mt from "deep-equal";
15
+ import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as ee, RICH_TEXT_EDITOR_OUTPUT_FORMATS as te, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as ne } from "./lib/rich-text-editor/rich-text-editor-constants.js";
16
+ import { t as re } from "./markdownRenderer-D_P94RyM.js";
17
+ import { Fragment as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as ie, createVNode as j, defineComponent as ae, h as oe, markRaw as se, mergeProps as ce, nextTick as le, normalizeClass as ue, onBeforeUnmount as de, onMounted as fe, openBlock as M, ref as pe, renderList as me, resolveComponent as N, resolveDynamicComponent as he, toDisplayString as P, vShow as ge, withCtx as F, withDirectives as _e, withKeys as ve, withModifiers as ye } from "vue";
18
+ import { emojiPattern as be } from "regex-combined-emojis";
19
+ import { DtIconLock as xe } from "@dialpad/dialtone-icons/vue3";
20
+ import { Extension as Se, InputRule as Ce, Mark as we, Node as Te, combineTransactionSteps as Ee, findChildrenInRange as De, getChangedRanges as Oe, getMarkRange as ke, getMarksBetween as Ae, getText as je, getTextSerializersFromSchema as Me, isTextSelection as Ne, mergeAttributes as I, nodeInputRule as Pe, nodePasteRule as Fe, posToDOMRect as Ie } from "@tiptap/core";
21
+ import { NodeSelection as Le, Plugin as Re, PluginKey as L } from "@tiptap/pm/state";
22
+ import { CellSelection as ze } from "@tiptap/pm/tables";
23
+ import Be from "@tiptap/extension-blockquote";
24
+ import Ve from "@tiptap/extension-code-block";
25
+ import He from "@tiptap/extension-code";
26
+ import Ue from "@tiptap/extension-document";
27
+ import { Gapcursor as We, Placeholder as Ge, UndoRedo as Ke } from "@tiptap/extensions";
28
+ import qe from "@tiptap/extension-hard-break";
29
+ import Je from "@tiptap/extension-paragraph";
30
+ import Ye from "@tiptap/extension-bold";
31
+ import { BulletList as Xe, ListItem as Ze, OrderedList as Qe } from "@tiptap/extension-list";
32
+ import $e from "@tiptap/extension-italic";
33
+ import et from "@tiptap/extension-link";
34
+ import tt from "@tiptap/extension-strike";
35
+ import nt from "@tiptap/extension-underline";
36
+ import rt from "@tiptap/extension-text";
37
+ import it from "@tiptap/extension-text-align";
38
+ import { Table as at, TableCell as ot, TableHeader as st, TableRow as ct } from "@tiptap/extension-table";
39
+ import { TextStyle as lt, TextStyleKit as ut } from "@tiptap/extension-text-style";
40
+ import dt from "@tiptap/suggestion";
41
+ import ft from "@tiptap/extension-image";
42
+ import pt from "@tiptap/extension-mention";
43
+ import mt from "@dialpad/dialtone-icons/vue3/hash";
44
+ import ht from "@dialpad/dialtone-icons/vue3/lock";
45
+ import gt from "deep-equal";
46
46
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
47
- var ht = [
47
+ var _t = [
48
48
  "top",
49
49
  "right",
50
50
  "bottom",
51
51
  "left"
52
- ], gt = ["start", "end"], _t = /* @__PURE__ */ ht.reduce((e, t) => e.concat(t, t + "-" + gt[0], t + "-" + gt[1]), []), z = Math.min, B = Math.max, vt = Math.round, V = (e) => ({
52
+ ], vt = ["start", "end"], yt = /* @__PURE__ */ _t.reduce((e, t) => e.concat(t, t + "-" + vt[0], t + "-" + vt[1]), []), R = Math.min, z = Math.max, bt = Math.round, B = (e) => ({
53
53
  x: e,
54
54
  y: e
55
- }), yt = {
55
+ }), xt = {
56
56
  left: "right",
57
57
  right: "left",
58
58
  bottom: "top",
59
59
  top: "bottom"
60
60
  };
61
- function bt(e, t, n) {
62
- return B(e, z(t, n));
61
+ function St(e, t, n) {
62
+ return z(e, R(t, n));
63
63
  }
64
- function H(e, t) {
64
+ function V(e, t) {
65
65
  return typeof e == "function" ? e(t) : e;
66
66
  }
67
- function U(e) {
67
+ function H(e) {
68
68
  return e.split("-")[0];
69
69
  }
70
- function W(e) {
70
+ function U(e) {
71
71
  return e.split("-")[1];
72
72
  }
73
- function xt(e) {
73
+ function Ct(e) {
74
74
  return e === "x" ? "y" : "x";
75
75
  }
76
- function St(e) {
76
+ function wt(e) {
77
77
  return e === "y" ? "height" : "width";
78
78
  }
79
- function G(e) {
79
+ function W(e) {
80
80
  let t = e[0];
81
81
  return t === "t" || t === "b" ? "y" : "x";
82
82
  }
83
- function Ct(e) {
84
- return xt(G(e));
83
+ function Tt(e) {
84
+ return Ct(W(e));
85
85
  }
86
- function wt(e, t, n) {
86
+ function Et(e, t, n) {
87
87
  n === void 0 && (n = !1);
88
- let r = W(e), i = Ct(e), a = St(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
89
- return t.reference[a] > t.floating[a] && (o = Nt(o)), [o, Nt(o)];
88
+ let r = U(e), i = Tt(e), a = wt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
89
+ return t.reference[a] > t.floating[a] && (o = Ft(o)), [o, Ft(o)];
90
90
  }
91
- function Tt(e) {
92
- let t = Nt(e);
91
+ function Dt(e) {
92
+ let t = Ft(e);
93
93
  return [
94
- Et(e),
94
+ Ot(e),
95
95
  t,
96
- Et(t)
96
+ Ot(t)
97
97
  ];
98
98
  }
99
- function Et(e) {
99
+ function Ot(e) {
100
100
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
101
101
  }
102
- var Dt = ["left", "right"], Ot = ["right", "left"], kt = ["top", "bottom"], At = ["bottom", "top"];
103
- function jt(e, t, n) {
102
+ var kt = ["left", "right"], At = ["right", "left"], jt = ["top", "bottom"], Mt = ["bottom", "top"];
103
+ function Nt(e, t, n) {
104
104
  switch (e) {
105
105
  case "top":
106
- case "bottom": return n ? t ? Ot : Dt : t ? Dt : Ot;
106
+ case "bottom": return n ? t ? At : kt : t ? kt : At;
107
107
  case "left":
108
- case "right": return t ? kt : At;
108
+ case "right": return t ? jt : Mt;
109
109
  default: return [];
110
110
  }
111
111
  }
112
- function Mt(e, t, n, r) {
113
- let i = W(e), a = jt(U(e), n === "start", r);
114
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Et)))), a;
112
+ function Pt(e, t, n, r) {
113
+ let i = U(e), a = Nt(H(e), n === "start", r);
114
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ot)))), a;
115
115
  }
116
- function Nt(e) {
117
- let t = U(e);
118
- return yt[t] + e.slice(t.length);
116
+ function Ft(e) {
117
+ let t = H(e);
118
+ return xt[t] + e.slice(t.length);
119
119
  }
120
- function Pt(e) {
120
+ function It(e) {
121
121
  return {
122
122
  top: 0,
123
123
  right: 0,
@@ -126,15 +126,15 @@ function Pt(e) {
126
126
  ...e
127
127
  };
128
128
  }
129
- function Ft(e) {
129
+ function Lt(e) {
130
130
  return typeof e == "number" ? {
131
131
  top: e,
132
132
  right: e,
133
133
  bottom: e,
134
134
  left: e
135
- } : Pt(e);
135
+ } : It(e);
136
136
  }
137
- function It(e) {
137
+ function G(e) {
138
138
  let { x: t, y: n, width: r, height: i } = e;
139
139
  return {
140
140
  width: r,
@@ -149,8 +149,8 @@ function It(e) {
149
149
  }
150
150
  //#endregion
151
151
  //#region ../../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
152
- function Lt(e, t, n) {
153
- let { reference: r, floating: i } = e, a = G(t), o = Ct(t), s = St(o), c = U(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
152
+ function Rt(e, t, n) {
153
+ let { reference: r, floating: i } = e, a = W(t), o = Tt(t), s = wt(o), c = H(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
154
154
  switch (c) {
155
155
  case "top":
156
156
  p = {
@@ -181,7 +181,7 @@ function Lt(e, t, n) {
181
181
  y: r.y
182
182
  };
183
183
  }
184
- switch (W(t)) {
184
+ switch (U(t)) {
185
185
  case "start":
186
186
  p[o] -= f * (n && l ? -1 : 1);
187
187
  break;
@@ -191,9 +191,9 @@ function Lt(e, t, n) {
191
191
  }
192
192
  return p;
193
193
  }
194
- async function Rt(e, t) {
194
+ async function zt(e, t) {
195
195
  t === void 0 && (t = {});
196
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = H(t, e), p = Ft(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = It(await i.getClippingRect({
196
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = V(t, e), p = Lt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = G(await i.getClippingRect({
197
197
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
198
198
  boundary: c,
199
199
  rootBoundary: l,
@@ -206,7 +206,7 @@ async function Rt(e, t) {
206
206
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
207
207
  x: 1,
208
208
  y: 1
209
- }, y = It(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
209
+ }, y = G(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
210
210
  elements: o,
211
211
  rect: g,
212
212
  offsetParent: _,
@@ -219,15 +219,15 @@ async function Rt(e, t) {
219
219
  right: (y.right - h.right + p.right) / v.x
220
220
  };
221
221
  }
222
- var zt = 50, Bt = async (e, t, n) => {
222
+ var Bt = 50, Vt = async (e, t, n) => {
223
223
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
224
224
  ...o,
225
- detectOverflow: Rt
225
+ detectOverflow: zt
226
226
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
227
227
  reference: e,
228
228
  floating: t,
229
229
  strategy: i
230
- }), { x: u, y: d } = Lt(l, r, c), f = r, p = 0, m = {};
230
+ }), { x: u, y: d } = Rt(l, r, c), f = r, p = 0, m = {};
231
231
  for (let n = 0; n < a.length; n++) {
232
232
  let h = a[n];
233
233
  if (!h) continue;
@@ -248,11 +248,11 @@ var zt = 50, Bt = async (e, t, n) => {
248
248
  u = v ?? u, d = y ?? d, m[g] = {
249
249
  ...m[g],
250
250
  ...b
251
- }, x && p < zt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
251
+ }, x && p < Bt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
252
252
  reference: e,
253
253
  floating: t,
254
254
  strategy: i
255
- }) : x.rects), {x: u, y: d} = Lt(l, f, c)), n = -1);
255
+ }) : x.rects), {x: u, y: d} = Rt(l, f, c)), n = -1);
256
256
  }
257
257
  return {
258
258
  x: u,
@@ -261,43 +261,43 @@ var zt = 50, Bt = async (e, t, n) => {
261
261
  strategy: i,
262
262
  middlewareData: m
263
263
  };
264
- }, Vt = (e) => ({
264
+ }, Ht = (e) => ({
265
265
  name: "arrow",
266
266
  options: e,
267
267
  async fn(t) {
268
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = H(e, t) || {};
268
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = V(e, t) || {};
269
269
  if (l == null) return {};
270
- let d = Ft(u), f = {
270
+ let d = Lt(u), f = {
271
271
  x: n,
272
272
  y: r
273
- }, p = Ct(i), m = St(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
273
+ }, p = Tt(i), m = wt(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
274
274
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
275
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = z(d[_], T), te = z(d[v], T), E = ee, ne = C - h[m] - te, D = C / 2 - h[m] / 2 + w, O = bt(E, D, ne), k = !c.arrow && W(i) != null && D !== O && a.reference[m] / 2 - (D < E ? ee : te) - h[m] / 2 < 0, A = k ? D < E ? D - E : D - ne : 0;
275
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = R(d[_], T), te = R(d[v], T), ne = ee, re = C - h[m] - te, E = C / 2 - h[m] / 2 + w, D = St(ne, E, re), O = !c.arrow && U(i) != null && E !== D && a.reference[m] / 2 - (E < ne ? ee : te) - h[m] / 2 < 0, k = O ? E < ne ? E - ne : E - re : 0;
276
276
  return {
277
- [p]: f[p] + A,
277
+ [p]: f[p] + k,
278
278
  data: {
279
- [p]: O,
280
- centerOffset: D - O - A,
281
- ...k && { alignmentOffset: A }
279
+ [p]: D,
280
+ centerOffset: E - D - k,
281
+ ...O && { alignmentOffset: k }
282
282
  },
283
- reset: k
283
+ reset: O
284
284
  };
285
285
  }
286
286
  });
287
- function Ht(e, t, n) {
288
- return (e ? [...n.filter((t) => W(t) === e), ...n.filter((t) => W(t) !== e)] : n.filter((e) => U(e) === e)).filter((n) => e ? W(n) === e || (t ? Et(n) !== n : !1) : !0);
287
+ function Ut(e, t, n) {
288
+ return (e ? [...n.filter((t) => U(t) === e), ...n.filter((t) => U(t) !== e)] : n.filter((e) => H(e) === e)).filter((n) => e ? U(n) === e || (t ? Ot(n) !== n : !1) : !0);
289
289
  }
290
- var Ut = function(e) {
290
+ var Wt = function(e) {
291
291
  return e === void 0 && (e = {}), {
292
292
  name: "autoPlacement",
293
293
  options: e,
294
294
  async fn(t) {
295
- let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l = _t, autoAlignment: u = !0, ...d } = H(e, t), f = c !== void 0 || l === _t ? Ht(c || null, u, l) : l, p = await a.detectOverflow(t, d), m = r.autoPlacement?.index || 0, h = f[m];
295
+ let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l = yt, autoAlignment: u = !0, ...d } = V(e, t), f = c !== void 0 || l === yt ? Ut(c || null, u, l) : l, p = await a.detectOverflow(t, d), m = r.autoPlacement?.index || 0, h = f[m];
296
296
  if (h == null) return {};
297
- let g = wt(h, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating)));
297
+ let g = Et(h, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating)));
298
298
  if (i !== h) return { reset: { placement: f[0] } };
299
299
  let _ = [
300
- p[U(h)],
300
+ p[H(h)],
301
301
  p[g[0]],
302
302
  p[g[1]]
303
303
  ], v = [...r.autoPlacement?.overflows || [], {
@@ -312,13 +312,13 @@ var Ut = function(e) {
312
312
  reset: { placement: y }
313
313
  };
314
314
  let b = v.map((e) => {
315
- let t = W(e.placement);
315
+ let t = U(e.placement);
316
316
  return [
317
317
  e.placement,
318
318
  t && s ? e.overflows.slice(0, 2).reduce((e, t) => e + t, 0) : e.overflows[0],
319
319
  e.overflows
320
320
  ];
321
- }).sort((e, t) => e[1] - t[1]), x = b.filter((e) => e[2].slice(0, W(e[0]) ? 2 : 3).every((e) => e <= 0))[0]?.[0] || b[0][0];
321
+ }).sort((e, t) => e[1] - t[1]), x = b.filter((e) => e[2].slice(0, U(e[0]) ? 2 : 3).every((e) => e <= 0))[0]?.[0] || b[0][0];
322
322
  return x === i ? {} : {
323
323
  data: {
324
324
  index: m + 1,
@@ -328,19 +328,19 @@ var Ut = function(e) {
328
328
  };
329
329
  }
330
330
  };
331
- }, Wt = function(e) {
331
+ }, Gt = function(e) {
332
332
  return e === void 0 && (e = {}), {
333
333
  name: "flip",
334
334
  options: e,
335
335
  async fn(t) {
336
336
  var n;
337
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = H(e, t);
337
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = V(e, t);
338
338
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
339
- let g = U(r), _ = G(o), v = U(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Nt(o)] : Tt(o)), x = p !== "none";
340
- !d && x && b.push(...Mt(o, m, p, y));
339
+ let g = H(r), _ = W(o), v = H(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ft(o)] : Dt(o)), x = p !== "none";
340
+ !d && x && b.push(...Pt(o, m, p, y));
341
341
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
342
342
  if (l && w.push(C[g]), u) {
343
- let e = wt(r, a, y);
343
+ let e = Et(r, a, y);
344
344
  w.push(C[e[0]], C[e[1]]);
345
345
  }
346
346
  if (T = [...T, {
@@ -348,7 +348,7 @@ var Ut = function(e) {
348
348
  overflows: w
349
349
  }], !w.every((e) => e <= 0)) {
350
350
  let e = (i.flip?.index || 0) + 1, t = S[e];
351
- if (t && (!(u === "alignment" && _ !== G(t)) || T.every((e) => G(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
351
+ if (t && (!(u === "alignment" && _ !== W(t)) || T.every((e) => W(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
352
352
  data: {
353
353
  index: e,
354
354
  overflows: T
@@ -360,7 +360,7 @@ var Ut = function(e) {
360
360
  case "bestFit": {
361
361
  let e = T.filter((e) => {
362
362
  if (x) {
363
- let t = G(e.placement);
363
+ let t = W(e.placement);
364
364
  return t === _ || t === "y";
365
365
  }
366
366
  return !0;
@@ -378,7 +378,7 @@ var Ut = function(e) {
378
378
  }
379
379
  };
380
380
  };
381
- function Gt(e, t) {
381
+ function Kt(e, t) {
382
382
  return {
383
383
  top: e.top - t.height,
384
384
  right: e.right - t.width,
@@ -386,34 +386,34 @@ function Gt(e, t) {
386
386
  left: e.left - t.width
387
387
  };
388
388
  }
389
- function Kt(e) {
390
- return ht.some((t) => e[t] >= 0);
389
+ function qt(e) {
390
+ return _t.some((t) => e[t] >= 0);
391
391
  }
392
- var qt = function(e) {
392
+ var Jt = function(e) {
393
393
  return e === void 0 && (e = {}), {
394
394
  name: "hide",
395
395
  options: e,
396
396
  async fn(t) {
397
- let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = H(e, t);
397
+ let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = V(e, t);
398
398
  switch (i) {
399
399
  case "referenceHidden": {
400
- let e = Gt(await r.detectOverflow(t, {
400
+ let e = Kt(await r.detectOverflow(t, {
401
401
  ...a,
402
402
  elementContext: "reference"
403
403
  }), n.reference);
404
404
  return { data: {
405
405
  referenceHiddenOffsets: e,
406
- referenceHidden: Kt(e)
406
+ referenceHidden: qt(e)
407
407
  } };
408
408
  }
409
409
  case "escaped": {
410
- let e = Gt(await r.detectOverflow(t, {
410
+ let e = Kt(await r.detectOverflow(t, {
411
411
  ...a,
412
412
  altBoundary: !0
413
413
  }), n.floating);
414
414
  return { data: {
415
415
  escapedOffsets: e,
416
- escaped: Kt(e)
416
+ escaped: qt(e)
417
417
  } };
418
418
  }
419
419
  default: return {};
@@ -421,8 +421,8 @@ var qt = function(e) {
421
421
  }
422
422
  };
423
423
  };
424
- function Jt(e) {
425
- let t = z(...e.map((e) => e.left)), n = z(...e.map((e) => e.top)), r = B(...e.map((e) => e.right)), i = B(...e.map((e) => e.bottom));
424
+ function Yt(e) {
425
+ let t = R(...e.map((e) => e.left)), n = R(...e.map((e) => e.top)), r = z(...e.map((e) => e.right)), i = z(...e.map((e) => e.bottom));
426
426
  return {
427
427
  x: t,
428
428
  y: n,
@@ -430,25 +430,25 @@ function Jt(e) {
430
430
  height: i - n
431
431
  };
432
432
  }
433
- function Yt(e) {
433
+ function Xt(e) {
434
434
  let t = e.slice().sort((e, t) => e.y - t.y), n = [], r = null;
435
435
  for (let e = 0; e < t.length; e++) {
436
436
  let i = t[e];
437
437
  !r || i.y - r.y > r.height / 2 ? n.push([i]) : n[n.length - 1].push(i), r = i;
438
438
  }
439
- return n.map((e) => It(Jt(e)));
439
+ return n.map((e) => G(Yt(e)));
440
440
  }
441
- var Xt = function(e) {
441
+ var Zt = function(e) {
442
442
  return e === void 0 && (e = {}), {
443
443
  name: "inline",
444
444
  options: e,
445
445
  async fn(t) {
446
- let { placement: n, elements: r, rects: i, platform: a, strategy: o } = t, { padding: s = 2, x: c, y: l } = H(e, t), u = Array.from(await (a.getClientRects == null ? void 0 : a.getClientRects(r.reference)) || []), d = Yt(u), f = It(Jt(u)), p = Ft(s);
446
+ let { placement: n, elements: r, rects: i, platform: a, strategy: o } = t, { padding: s = 2, x: c, y: l } = V(e, t), u = Array.from(await (a.getClientRects == null ? void 0 : a.getClientRects(r.reference)) || []), d = Xt(u), f = G(Yt(u)), p = Lt(s);
447
447
  function m() {
448
448
  if (d.length === 2 && d[0].left > d[1].right && c != null && l != null) return d.find((e) => c > e.left - p.left && c < e.right + p.right && l > e.top - p.top && l < e.bottom + p.bottom) || f;
449
449
  if (d.length >= 2) {
450
- if (G(n) === "y") {
451
- let e = d[0], t = d[d.length - 1], r = U(n) === "top", i = e.top, a = t.bottom, o = r ? e.left : t.left, s = r ? e.right : t.right;
450
+ if (W(n) === "y") {
451
+ let e = d[0], t = d[d.length - 1], r = H(n) === "top", i = e.top, a = t.bottom, o = r ? e.left : t.left, s = r ? e.right : t.right;
452
452
  return {
453
453
  top: i,
454
454
  bottom: a,
@@ -460,7 +460,7 @@ var Xt = function(e) {
460
460
  y: i
461
461
  };
462
462
  }
463
- let e = U(n) === "left", t = B(...d.map((e) => e.right)), r = z(...d.map((e) => e.left)), i = d.filter((n) => e ? n.left === r : n.right === t), a = i[0].top, o = i[i.length - 1].bottom, s = r, c = t;
463
+ let e = H(n) === "left", t = z(...d.map((e) => e.right)), r = R(...d.map((e) => e.left)), i = d.filter((n) => e ? n.left === r : n.right === t), a = i[0].top, o = i[i.length - 1].bottom, s = r, c = t;
464
464
  return {
465
465
  top: a,
466
466
  bottom: o,
@@ -482,9 +482,9 @@ var Xt = function(e) {
482
482
  return i.reference.x !== h.reference.x || i.reference.y !== h.reference.y || i.reference.width !== h.reference.width || i.reference.height !== h.reference.height ? { reset: { rects: h } } : {};
483
483
  }
484
484
  };
485
- }, Zt = /* @__PURE__ */ new Set(["left", "top"]);
486
- async function Qt(e, t) {
487
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = U(n), s = W(n), c = G(n) === "y", l = Zt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = H(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
485
+ }, Qt = /* @__PURE__ */ new Set(["left", "top"]);
486
+ async function $t(e, t) {
487
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = H(n), s = U(n), c = W(n) === "y", l = Qt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = V(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
488
488
  mainAxis: d,
489
489
  crossAxis: 0,
490
490
  alignmentAxis: null
@@ -501,13 +501,13 @@ async function Qt(e, t) {
501
501
  y: p * u
502
502
  };
503
503
  }
504
- var $t = function(e) {
504
+ var en = function(e) {
505
505
  return e === void 0 && (e = 0), {
506
506
  name: "offset",
507
507
  options: e,
508
508
  async fn(t) {
509
509
  var n;
510
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Qt(t, e);
510
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await $t(t, e);
511
511
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
512
512
  x: r + s.x,
513
513
  y: i + s.y,
@@ -518,7 +518,7 @@ var $t = function(e) {
518
518
  };
519
519
  }
520
520
  };
521
- }, en = function(e) {
521
+ }, tn = function(e) {
522
522
  return e === void 0 && (e = {}), {
523
523
  name: "shift",
524
524
  options: e,
@@ -529,17 +529,17 @@ var $t = function(e) {
529
529
  x: t,
530
530
  y: n
531
531
  };
532
- } }, ...l } = H(e, t), u = {
532
+ } }, ...l } = V(e, t), u = {
533
533
  x: n,
534
534
  y: r
535
- }, d = await a.detectOverflow(t, l), f = G(U(i)), p = xt(f), m = u[p], h = u[f];
535
+ }, d = await a.detectOverflow(t, l), f = W(H(i)), p = Ct(f), m = u[p], h = u[f];
536
536
  if (o) {
537
537
  let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
538
- m = bt(n, m, r);
538
+ m = St(n, m, r);
539
539
  }
540
540
  if (s) {
541
541
  let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
542
- h = bt(n, h, r);
542
+ h = St(n, h, r);
543
543
  }
544
544
  let g = c.fn({
545
545
  ...t,
@@ -559,18 +559,18 @@ var $t = function(e) {
559
559
  };
560
560
  }
561
561
  };
562
- }, tn = function(e) {
562
+ }, nn = function(e) {
563
563
  return e === void 0 && (e = {}), {
564
564
  name: "size",
565
565
  options: e,
566
566
  async fn(t) {
567
567
  var n, r;
568
- let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = H(e, t), u = await o.detectOverflow(t, l), d = U(i), f = W(i), p = G(i) === "y", { width: m, height: h } = a.floating, g, _;
568
+ let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = V(e, t), u = await o.detectOverflow(t, l), d = H(i), f = U(i), p = W(i) === "y", { width: m, height: h } = a.floating, g, _;
569
569
  d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
570
- let v = h - u.top - u.bottom, y = m - u.left - u.right, b = z(h - u[g], v), x = z(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
570
+ let v = h - u.top - u.bottom, y = m - u.left - u.right, b = R(h - u[g], v), x = R(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
571
571
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
572
- let e = B(u.left, 0), t = B(u.right, 0), n = B(u.top, 0), r = B(u.bottom, 0);
573
- p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : B(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : B(u.top, u.bottom));
572
+ let e = z(u.left, 0), t = z(u.right, 0), n = z(u.top, 0), r = z(u.bottom, 0);
573
+ p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : z(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : z(u.top, u.bottom));
574
574
  }
575
575
  await c({
576
576
  ...t,
@@ -584,39 +584,39 @@ var $t = function(e) {
584
584
  };
585
585
  //#endregion
586
586
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
587
- function nn() {
587
+ function rn() {
588
588
  return typeof window < "u";
589
589
  }
590
- function rn(e) {
591
- return an(e) ? (e.nodeName || "").toLowerCase() : "#document";
590
+ function an(e) {
591
+ return on(e) ? (e.nodeName || "").toLowerCase() : "#document";
592
592
  }
593
593
  function K(e) {
594
594
  var t;
595
595
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
596
596
  }
597
597
  function q(e) {
598
- return ((an(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
598
+ return ((on(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
599
599
  }
600
- function an(e) {
601
- return nn() ? e instanceof Node || e instanceof K(e).Node : !1;
600
+ function on(e) {
601
+ return rn() ? e instanceof Node || e instanceof K(e).Node : !1;
602
602
  }
603
603
  function J(e) {
604
- return nn() ? e instanceof Element || e instanceof K(e).Element : !1;
604
+ return rn() ? e instanceof Element || e instanceof K(e).Element : !1;
605
605
  }
606
606
  function Y(e) {
607
- return nn() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
608
- }
609
- function on(e) {
610
- return !nn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
607
+ return rn() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
611
608
  }
612
609
  function sn(e) {
613
- let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
614
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
610
+ return !rn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
615
611
  }
616
612
  function cn(e) {
617
- return /^(table|td|th)$/.test(rn(e));
613
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
614
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
618
615
  }
619
616
  function ln(e) {
617
+ return /^(table|td|th)$/.test(an(e));
618
+ }
619
+ function un(e) {
620
620
  try {
621
621
  if (e.matches(":popover-open")) return !0;
622
622
  } catch {}
@@ -626,30 +626,30 @@ function ln(e) {
626
626
  return !1;
627
627
  }
628
628
  }
629
- var un = /transform|translate|scale|rotate|perspective|filter/, dn = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", fn;
630
- function pn(e) {
629
+ var dn = /transform|translate|scale|rotate|perspective|filter/, fn = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", pn;
630
+ function mn(e) {
631
631
  let t = J(e) ? Z(e) : e;
632
- return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !hn() && (X(t.backdropFilter) || X(t.filter)) || un.test(t.willChange || "") || dn.test(t.contain || "");
632
+ return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !gn() && (X(t.backdropFilter) || X(t.filter)) || dn.test(t.willChange || "") || fn.test(t.contain || "");
633
633
  }
634
- function mn(e) {
634
+ function hn(e) {
635
635
  let t = Q(e);
636
- for (; Y(t) && !gn(t);) {
637
- if (pn(t)) return t;
638
- if (ln(t)) return null;
636
+ for (; Y(t) && !_n(t);) {
637
+ if (mn(t)) return t;
638
+ if (un(t)) return null;
639
639
  t = Q(t);
640
640
  }
641
641
  return null;
642
642
  }
643
- function hn() {
644
- return fn ?? (fn = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), fn;
643
+ function gn() {
644
+ return pn ?? (pn = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), pn;
645
645
  }
646
- function gn(e) {
647
- return /^(html|body|#document)$/.test(rn(e));
646
+ function _n(e) {
647
+ return /^(html|body|#document)$/.test(an(e));
648
648
  }
649
649
  function Z(e) {
650
650
  return K(e).getComputedStyle(e);
651
651
  }
652
- function _n(e) {
652
+ function vn(e) {
653
653
  return J(e) ? {
654
654
  scrollLeft: e.scrollLeft,
655
655
  scrollTop: e.scrollTop
@@ -659,100 +659,100 @@ function _n(e) {
659
659
  };
660
660
  }
661
661
  function Q(e) {
662
- if (rn(e) === "html") return e;
663
- let t = e.assignedSlot || e.parentNode || on(e) && e.host || q(e);
664
- return on(t) ? t.host : t;
662
+ if (an(e) === "html") return e;
663
+ let t = e.assignedSlot || e.parentNode || sn(e) && e.host || q(e);
664
+ return sn(t) ? t.host : t;
665
665
  }
666
- function vn(e) {
666
+ function yn(e) {
667
667
  let t = Q(e);
668
- return gn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && sn(t) ? t : vn(t);
668
+ return _n(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && cn(t) ? t : yn(t);
669
669
  }
670
- function yn(e, t, n) {
670
+ function bn(e, t, n) {
671
671
  t === void 0 && (t = []), n === void 0 && (n = !0);
672
- let r = vn(e), i = r === e.ownerDocument?.body, a = K(r);
672
+ let r = yn(e), i = r === e.ownerDocument?.body, a = K(r);
673
673
  if (i) {
674
- let e = bn(a);
675
- return t.concat(a, a.visualViewport || [], sn(r) ? r : [], e && n ? yn(e) : []);
676
- } else return t.concat(r, yn(r, [], n));
674
+ let e = xn(a);
675
+ return t.concat(a, a.visualViewport || [], cn(r) ? r : [], e && n ? bn(e) : []);
676
+ } else return t.concat(r, bn(r, [], n));
677
677
  }
678
- function bn(e) {
678
+ function xn(e) {
679
679
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
680
680
  }
681
681
  //#endregion
682
682
  //#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
683
- function xn(e) {
684
- let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = vt(n) !== a || vt(r) !== o;
683
+ function Sn(e) {
684
+ let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = bt(n) !== a || bt(r) !== o;
685
685
  return s && (n = a, r = o), {
686
686
  width: n,
687
687
  height: r,
688
688
  $: s
689
689
  };
690
690
  }
691
- function Sn(e) {
691
+ function Cn(e) {
692
692
  return J(e) ? e : e.contextElement;
693
693
  }
694
- function Cn(e) {
695
- let t = Sn(e);
696
- if (!Y(t)) return V(1);
697
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = xn(t), o = (a ? vt(n.width) : n.width) / r, s = (a ? vt(n.height) : n.height) / i;
694
+ function wn(e) {
695
+ let t = Cn(e);
696
+ if (!Y(t)) return B(1);
697
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Sn(t), o = (a ? bt(n.width) : n.width) / r, s = (a ? bt(n.height) : n.height) / i;
698
698
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
699
699
  x: o,
700
700
  y: s
701
701
  };
702
702
  }
703
- var wn = /* @__PURE__ */ V(0);
704
- function Tn(e) {
703
+ var Tn = /* @__PURE__ */ B(0);
704
+ function En(e) {
705
705
  let t = K(e);
706
- return !hn() || !t.visualViewport ? wn : {
706
+ return !gn() || !t.visualViewport ? Tn : {
707
707
  x: t.visualViewport.offsetLeft,
708
708
  y: t.visualViewport.offsetTop
709
709
  };
710
710
  }
711
- function En(e, t, n) {
711
+ function Dn(e, t, n) {
712
712
  return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
713
713
  }
714
- function Dn(e, t, n, r) {
714
+ function On(e, t, n, r) {
715
715
  t === void 0 && (t = !1), n === void 0 && (n = !1);
716
- let i = e.getBoundingClientRect(), a = Sn(e), o = V(1);
717
- t && (r ? J(r) && (o = Cn(r)) : o = Cn(e));
718
- let s = En(a, n, r) ? Tn(a) : V(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
716
+ let i = e.getBoundingClientRect(), a = Cn(e), o = B(1);
717
+ t && (r ? J(r) && (o = wn(r)) : o = wn(e));
718
+ let s = Dn(a, n, r) ? En(a) : B(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
719
719
  if (a) {
720
- let e = K(a), t = r && J(r) ? K(r) : r, n = e, i = bn(n);
720
+ let e = K(a), t = r && J(r) ? K(r) : r, n = e, i = xn(n);
721
721
  for (; i && r && t !== n;) {
722
- let e = Cn(i), t = i.getBoundingClientRect(), r = Z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
723
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = bn(n);
722
+ let e = wn(i), t = i.getBoundingClientRect(), r = Z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
723
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = xn(n);
724
724
  }
725
725
  }
726
- return It({
726
+ return G({
727
727
  width: u,
728
728
  height: d,
729
729
  x: c,
730
730
  y: l
731
731
  });
732
732
  }
733
- function On(e, t) {
734
- let n = _n(e).scrollLeft;
735
- return t ? t.left + n : Dn(q(e)).left + n;
736
- }
737
733
  function kn(e, t) {
734
+ let n = vn(e).scrollLeft;
735
+ return t ? t.left + n : On(q(e)).left + n;
736
+ }
737
+ function An(e, t) {
738
738
  let n = e.getBoundingClientRect();
739
739
  return {
740
- x: n.left + t.scrollLeft - On(e, n),
740
+ x: n.left + t.scrollLeft - kn(e, n),
741
741
  y: n.top + t.scrollTop
742
742
  };
743
743
  }
744
- function An(e) {
745
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ? ln(t.floating) : !1;
744
+ function jn(e) {
745
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ? un(t.floating) : !1;
746
746
  if (r === o || s && a) return n;
747
747
  let c = {
748
748
  scrollLeft: 0,
749
749
  scrollTop: 0
750
- }, l = V(1), u = V(0), d = Y(r);
751
- if ((d || !d && !a) && ((rn(r) !== "body" || sn(o)) && (c = _n(r)), d)) {
752
- let e = Dn(r);
753
- l = Cn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
750
+ }, l = B(1), u = B(0), d = Y(r);
751
+ if ((d || !d && !a) && ((an(r) !== "body" || cn(o)) && (c = vn(r)), d)) {
752
+ let e = On(r);
753
+ l = wn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
754
754
  }
755
- let f = o && !d && !a ? kn(o, c) : V(0);
755
+ let f = o && !d && !a ? An(o, c) : B(0);
756
756
  return {
757
757
  width: n.width * l.x,
758
758
  height: n.height * l.y,
@@ -760,31 +760,31 @@ function An(e) {
760
760
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
761
761
  };
762
762
  }
763
- function jn(e) {
763
+ function Mn(e) {
764
764
  return Array.from(e.getClientRects());
765
765
  }
766
- function Mn(e) {
767
- let t = q(e), n = _n(e), r = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + On(e), s = -n.scrollTop;
768
- return Z(r).direction === "rtl" && (o += B(t.clientWidth, r.clientWidth) - i), {
766
+ function Nn(e) {
767
+ let t = q(e), n = vn(e), r = e.ownerDocument.body, i = z(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = z(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + kn(e), s = -n.scrollTop;
768
+ return Z(r).direction === "rtl" && (o += z(t.clientWidth, r.clientWidth) - i), {
769
769
  width: i,
770
770
  height: a,
771
771
  x: o,
772
772
  y: s
773
773
  };
774
774
  }
775
- var Nn = 25;
776
- function Pn(e, t) {
775
+ var Pn = 25;
776
+ function Fn(e, t) {
777
777
  let n = K(e), r = q(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
778
778
  if (i) {
779
779
  a = i.width, o = i.height;
780
- let e = hn();
780
+ let e = gn();
781
781
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
782
782
  }
783
- let l = On(r);
783
+ let l = kn(r);
784
784
  if (l <= 0) {
785
785
  let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
786
- o <= Nn && (a -= o);
787
- } else l <= Nn && (a += l);
786
+ o <= Pn && (a -= o);
787
+ } else l <= Pn && (a += l);
788
788
  return {
789
789
  width: a,
790
790
  height: o,
@@ -792,8 +792,8 @@ function Pn(e, t) {
792
792
  y: c
793
793
  };
794
794
  }
795
- function Fn(e, t) {
796
- let n = Dn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ? Cn(e) : V(1);
795
+ function In(e, t) {
796
+ let n = On(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ? wn(e) : B(1);
797
797
  return {
798
798
  width: e.clientWidth * a.x,
799
799
  height: e.clientHeight * a.y,
@@ -801,13 +801,13 @@ function Fn(e, t) {
801
801
  y: r * a.y
802
802
  };
803
803
  }
804
- function In(e, t, n) {
804
+ function Ln(e, t, n) {
805
805
  let r;
806
- if (t === "viewport") r = Pn(e, n);
807
- else if (t === "document") r = Mn(q(e));
808
- else if (J(t)) r = Fn(t, n);
806
+ if (t === "viewport") r = Fn(e, n);
807
+ else if (t === "document") r = Nn(q(e));
808
+ else if (J(t)) r = In(t, n);
809
809
  else {
810
- let n = Tn(e);
810
+ let n = En(e);
811
811
  r = {
812
812
  x: t.x - n.x,
813
813
  y: t.y - n.y,
@@ -815,27 +815,27 @@ function In(e, t, n) {
815
815
  height: t.height
816
816
  };
817
817
  }
818
- return It(r);
818
+ return G(r);
819
819
  }
820
- function Ln(e, t) {
820
+ function Rn(e, t) {
821
821
  let n = Q(e);
822
- return n === t || !J(n) || gn(n) ? !1 : Z(n).position === "fixed" || Ln(n, t);
822
+ return n === t || !J(n) || _n(n) ? !1 : Z(n).position === "fixed" || Rn(n, t);
823
823
  }
824
- function Rn(e, t) {
824
+ function zn(e, t) {
825
825
  let n = t.get(e);
826
826
  if (n) return n;
827
- let r = yn(e, [], !1).filter((e) => J(e) && rn(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
828
- for (; J(o) && !gn(o);) {
829
- let t = Z(o), n = pn(o);
830
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || sn(o) && !n && Ln(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Q(o);
827
+ let r = bn(e, [], !1).filter((e) => J(e) && an(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
828
+ for (; J(o) && !_n(o);) {
829
+ let t = Z(o), n = mn(o);
830
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || cn(o) && !n && Rn(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Q(o);
831
831
  }
832
832
  return t.set(e, r), r;
833
833
  }
834
- function zn(e) {
835
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ln(t) ? [] : Rn(t, this._c) : [].concat(n), r], o = In(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
834
+ function Bn(e) {
835
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? un(t) ? [] : zn(t, this._c) : [].concat(n), r], o = Ln(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
836
836
  for (let e = 1; e < a.length; e++) {
837
- let n = In(t, a[e], i);
838
- s = B(n.top, s), c = z(n.right, c), l = z(n.bottom, l), u = B(n.left, u);
837
+ let n = Ln(t, a[e], i);
838
+ s = z(n.top, s), c = R(n.right, c), l = R(n.bottom, l), u = z(n.left, u);
839
839
  }
840
840
  return {
841
841
  width: c - u,
@@ -844,27 +844,27 @@ function zn(e) {
844
844
  y: s
845
845
  };
846
846
  }
847
- function Bn(e) {
848
- let { width: t, height: n } = xn(e);
847
+ function Vn(e) {
848
+ let { width: t, height: n } = Sn(e);
849
849
  return {
850
850
  width: t,
851
851
  height: n
852
852
  };
853
853
  }
854
- function Vn(e, t, n) {
855
- let r = Y(t), i = q(t), a = n === "fixed", o = Dn(e, !0, a, t), s = {
854
+ function Hn(e, t, n) {
855
+ let r = Y(t), i = q(t), a = n === "fixed", o = On(e, !0, a, t), s = {
856
856
  scrollLeft: 0,
857
857
  scrollTop: 0
858
- }, c = V(0);
858
+ }, c = B(0);
859
859
  function l() {
860
- c.x = On(i);
860
+ c.x = kn(i);
861
861
  }
862
- if (r || !r && !a) if ((rn(t) !== "body" || sn(i)) && (s = _n(t)), r) {
863
- let e = Dn(t, !0, a, t);
862
+ if (r || !r && !a) if ((an(t) !== "body" || cn(i)) && (s = vn(t)), r) {
863
+ let e = On(t, !0, a, t);
864
864
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
865
865
  } else i && l();
866
866
  a && !r && i && l();
867
- let u = i && !r && !a ? kn(i, s) : V(0);
867
+ let u = i && !r && !a ? An(i, s) : B(0);
868
868
  return {
869
869
  x: o.left + s.scrollLeft - c.x - u.x,
870
870
  y: o.top + s.scrollTop - c.y - u.y,
@@ -872,34 +872,34 @@ function Vn(e, t, n) {
872
872
  height: o.height
873
873
  };
874
874
  }
875
- function Hn(e) {
875
+ function Un(e) {
876
876
  return Z(e).position === "static";
877
877
  }
878
- function Un(e, t) {
878
+ function Wn(e, t) {
879
879
  if (!Y(e) || Z(e).position === "fixed") return null;
880
880
  if (t) return t(e);
881
881
  let n = e.offsetParent;
882
882
  return q(e) === n && (n = n.ownerDocument.body), n;
883
883
  }
884
- function Wn(e, t) {
884
+ function Gn(e, t) {
885
885
  let n = K(e);
886
- if (ln(e)) return n;
886
+ if (un(e)) return n;
887
887
  if (!Y(e)) {
888
888
  let t = Q(e);
889
- for (; t && !gn(t);) {
890
- if (J(t) && !Hn(t)) return t;
889
+ for (; t && !_n(t);) {
890
+ if (J(t) && !Un(t)) return t;
891
891
  t = Q(t);
892
892
  }
893
893
  return n;
894
894
  }
895
- let r = Un(e, t);
896
- for (; r && cn(r) && Hn(r);) r = Un(r, t);
897
- return r && gn(r) && Hn(r) && !pn(r) ? n : r || mn(e) || n;
895
+ let r = Wn(e, t);
896
+ for (; r && ln(r) && Un(r);) r = Wn(r, t);
897
+ return r && _n(r) && Un(r) && !mn(r) ? n : r || hn(e) || n;
898
898
  }
899
- var Gn = async function(e) {
900
- let t = this.getOffsetParent || Wn, n = this.getDimensions, r = await n(e.floating);
899
+ var Kn = async function(e) {
900
+ let t = this.getOffsetParent || Gn, n = this.getDimensions, r = await n(e.floating);
901
901
  return {
902
- reference: Vn(e.reference, await t(e.floating), e.strategy),
902
+ reference: Hn(e.reference, await t(e.floating), e.strategy),
903
903
  floating: {
904
904
  x: 0,
905
905
  y: 0,
@@ -908,40 +908,40 @@ var Gn = async function(e) {
908
908
  }
909
909
  };
910
910
  };
911
- function Kn(e) {
911
+ function qn(e) {
912
912
  return Z(e).direction === "rtl";
913
913
  }
914
- var qn = {
915
- convertOffsetParentRelativeRectToViewportRelativeRect: An,
914
+ var Jn = {
915
+ convertOffsetParentRelativeRectToViewportRelativeRect: jn,
916
916
  getDocumentElement: q,
917
- getClippingRect: zn,
918
- getOffsetParent: Wn,
919
- getElementRects: Gn,
920
- getClientRects: jn,
921
- getDimensions: Bn,
922
- getScale: Cn,
917
+ getClippingRect: Bn,
918
+ getOffsetParent: Gn,
919
+ getElementRects: Kn,
920
+ getClientRects: Mn,
921
+ getDimensions: Vn,
922
+ getScale: wn,
923
923
  isElement: J,
924
- isRTL: Kn
925
- }, Jn = $t, Yn = Ut, Xn = en, Zn = Wt, Qn = tn, $n = qt, er = Vt, tr = Xt, nr = (e, t, n) => {
924
+ isRTL: qn
925
+ }, Yn = en, Xn = Wt, Zn = tn, Qn = Gt, $n = nn, er = Jt, tr = Ht, nr = Zt, rr = (e, t, n) => {
926
926
  let r = /* @__PURE__ */ new Map(), i = {
927
- platform: qn,
927
+ platform: Jn,
928
928
  ...n
929
929
  }, a = {
930
930
  ...i.platform,
931
931
  _c: r
932
932
  };
933
- return Bt(e, t, {
933
+ return Vt(e, t, {
934
934
  ...i,
935
935
  platform: a
936
936
  });
937
937
  };
938
938
  //#endregion
939
939
  //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=hlk524tqy4svh2bbayevihx324_@floating-ui+dom@1.7.6_@tiptap+cor_kpexihlfm3sl2tcft5dydpfypm/node_modules/@tiptap/vue-3/dist/menus/index.js
940
- function rr(e, t) {
940
+ function ir(e, t) {
941
941
  let n = Math.min(e.top, t.top), r = Math.max(e.bottom, t.bottom), i = Math.min(e.left, t.left), a = Math.max(e.right, t.right) - i, o = r - n;
942
942
  return new DOMRect(i, n, a, o);
943
943
  }
944
- var ir = class {
944
+ var ar = class {
945
945
  constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, shouldShow: a, appendTo: o, getReferencedVirtualElement: s, options: c }) {
946
946
  this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.floatingUIOptions = {
947
947
  strategy: "absolute",
@@ -959,7 +959,7 @@ var ir = class {
959
959
  onUpdate: void 0,
960
960
  onDestroy: void 0
961
961
  }, this.shouldShow = ({ view: e, state: t, from: n, to: r }) => {
962
- let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length && je(t.selection), c = this.element.contains(document.activeElement);
962
+ let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length && Ne(t.selection), c = this.element.contains(document.activeElement);
963
963
  return !(!(e.hasFocus() || c) || o || s || !this.editor.isEditable);
964
964
  }, this.mousedownHandler = () => {
965
965
  this.preventHide = !0;
@@ -1005,27 +1005,27 @@ var ir = class {
1005
1005
  }
1006
1006
  get middlewares() {
1007
1007
  let e = [];
1008
- return this.floatingUIOptions.flip && e.push(Zn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Xn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Jn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(er(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Qn(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Yn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push($n(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(tr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
1008
+ return this.floatingUIOptions.flip && e.push(Qn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Zn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Yn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(tr(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push($n(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Xn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(er(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(nr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
1009
1009
  }
1010
1010
  get virtualElement() {
1011
1011
  let { selection: e } = this.editor.state, t = this.getReferencedVirtualElement?.call(this);
1012
1012
  if (t) return t;
1013
1013
  if (!this.view?.dom?.parentNode) return;
1014
- let n = Pe(this.view, e.from, e.to), r = {
1014
+ let n = Ie(this.view, e.from, e.to), r = {
1015
1015
  getBoundingClientRect: () => n,
1016
1016
  getClientRects: () => [n]
1017
1017
  };
1018
- if (e instanceof Fe) {
1018
+ if (e instanceof Le) {
1019
1019
  let t = this.view.nodeDOM(e.from), n = t.dataset.nodeViewWrapper ? t : t.querySelector("[data-node-view-wrapper]");
1020
1020
  n && (t = n), t && (r = {
1021
1021
  getBoundingClientRect: () => t.getBoundingClientRect(),
1022
1022
  getClientRects: () => [t.getBoundingClientRect()]
1023
1023
  });
1024
1024
  }
1025
- if (e instanceof Le) {
1025
+ if (e instanceof ze) {
1026
1026
  let { $anchorCell: t, $headCell: n } = e, i = t ? t.pos : n.pos, a = n ? n.pos : t.pos, o = this.view.nodeDOM(i), s = this.view.nodeDOM(a);
1027
1027
  if (!o || !s) return;
1028
- let c = o === s ? o.getBoundingClientRect() : rr(o.getBoundingClientRect(), s.getBoundingClientRect());
1028
+ let c = o === s ? o.getBoundingClientRect() : ir(o.getBoundingClientRect(), s.getBoundingClientRect());
1029
1029
  r = {
1030
1030
  getBoundingClientRect: () => c,
1031
1031
  getClientRects: () => [c]
@@ -1035,7 +1035,7 @@ var ir = class {
1035
1035
  }
1036
1036
  updatePosition() {
1037
1037
  let e = this.virtualElement;
1038
- e && nr(e, this.element, {
1038
+ e && rr(e, this.element, {
1039
1039
  placement: this.floatingUIOptions.placement,
1040
1040
  strategy: this.floatingUIOptions.strategy,
1041
1041
  middleware: this.middlewares
@@ -1087,13 +1087,13 @@ var ir = class {
1087
1087
  destroy() {
1088
1088
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
1089
1089
  }
1090
- }, ar = (e) => new Ie({
1091
- key: typeof e.pluginKey == "string" ? new R(e.pluginKey) : e.pluginKey,
1092
- view: (t) => new ir({
1090
+ }, or = (e) => new Re({
1091
+ key: typeof e.pluginKey == "string" ? new L(e.pluginKey) : e.pluginKey,
1092
+ view: (t) => new ar({
1093
1093
  view: t,
1094
1094
  ...e
1095
1095
  })
1096
- }), or = ie({
1096
+ }), sr = ae({
1097
1097
  name: "BubbleMenu",
1098
1098
  inheritAttrs: !1,
1099
1099
  props: {
@@ -1131,11 +1131,11 @@ var ir = class {
1131
1131
  }
1132
1132
  },
1133
1133
  setup(e, { slots: t, attrs: n }) {
1134
- let r = fe(null);
1135
- return de(() => {
1134
+ let r = pe(null);
1135
+ return fe(() => {
1136
1136
  let { editor: t, options: n, pluginKey: i, resizeDelay: a, appendTo: o, shouldShow: s, getReferencedVirtualElement: c, updateDelay: l } = e, u = r.value;
1137
- u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(), ce(() => {
1138
- t.registerPlugin(ar({
1137
+ u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(), le(() => {
1138
+ t.registerPlugin(or({
1139
1139
  editor: t,
1140
1140
  element: u,
1141
1141
  options: n,
@@ -1147,15 +1147,15 @@ var ir = class {
1147
1147
  updateDelay: l
1148
1148
  }));
1149
1149
  }));
1150
- }), ue(() => {
1150
+ }), de(() => {
1151
1151
  let { pluginKey: t, editor: n } = e;
1152
1152
  n.unregisterPlugin(t);
1153
- }), () => ae("div", {
1153
+ }), () => oe("div", {
1154
1154
  ref: r,
1155
1155
  ...n
1156
1156
  }, t.default?.call(t));
1157
1157
  }
1158
- }), sr = class {
1158
+ }), cr = class {
1159
1159
  constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, options: a, appendTo: o, shouldShow: s }) {
1160
1160
  this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.shouldShow = ({ view: e, state: t }) => {
1161
1161
  let { selection: n } = t, { $anchor: r, empty: i } = n, a = r.depth === 1, o = r.parent.isTextblock && !r.parent.type.spec.code && !r.parent.textContent && r.parent.childCount === 0 && !this.getTextContent(r.parent);
@@ -1203,11 +1203,11 @@ var ir = class {
1203
1203
  }, this.element.tabIndex = 0, s && (this.shouldShow = s), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.editor.on("transaction", this.transactionHandler), window.addEventListener("resize", this.resizeHandler), this.scrollTarget.addEventListener("scroll", this.resizeHandler), this.update(n, n.state), this.getShouldShow() && (this.show(), this.updatePosition());
1204
1204
  }
1205
1205
  getTextContent(e) {
1206
- return ke(e, { textSerializers: Ae(this.editor.schema) });
1206
+ return je(e, { textSerializers: Me(this.editor.schema) });
1207
1207
  }
1208
1208
  get middlewares() {
1209
1209
  let e = [];
1210
- return this.floatingUIOptions.flip && e.push(Zn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Xn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Jn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(er(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Qn(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Yn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push($n(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(tr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
1210
+ return this.floatingUIOptions.flip && e.push(Qn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Zn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Yn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(tr(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push($n(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Xn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(er(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(nr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
1211
1211
  }
1212
1212
  getShouldShow(e) {
1213
1213
  let { state: t } = this.view, { selection: n } = t, { ranges: r } = n, i = Math.min(...r.map((e) => e.$from.pos)), a = Math.max(...r.map((e) => e.$to.pos));
@@ -1230,8 +1230,8 @@ var ir = class {
1230
1230
  }
1231
1231
  }
1232
1232
  updatePosition() {
1233
- let { selection: e } = this.editor.state, t = Pe(this.view, e.from, e.to);
1234
- nr({
1233
+ let { selection: e } = this.editor.state, t = Ie(this.view, e.from, e.to);
1234
+ rr({
1235
1235
  getBoundingClientRect: () => t,
1236
1236
  getClientRects: () => [t]
1237
1237
  }, this.element, {
@@ -1260,14 +1260,14 @@ var ir = class {
1260
1260
  destroy() {
1261
1261
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
1262
1262
  }
1263
- }, cr = (e) => new Ie({
1264
- key: typeof e.pluginKey == "string" ? new R(e.pluginKey) : e.pluginKey,
1265
- view: (t) => new sr({
1263
+ }, lr = (e) => new Re({
1264
+ key: typeof e.pluginKey == "string" ? new L(e.pluginKey) : e.pluginKey,
1265
+ view: (t) => new cr({
1266
1266
  view: t,
1267
1267
  ...e
1268
1268
  })
1269
1269
  });
1270
- ie({
1270
+ ae({
1271
1271
  name: "FloatingMenu",
1272
1272
  inheritAttrs: !1,
1273
1273
  props: {
@@ -1301,10 +1301,10 @@ ie({
1301
1301
  }
1302
1302
  },
1303
1303
  setup(e, { slots: t, attrs: n }) {
1304
- let r = fe(null);
1305
- return de(() => {
1304
+ let r = pe(null);
1305
+ return fe(() => {
1306
1306
  let { pluginKey: t, editor: n, updateDelay: i, resizeDelay: a, options: o, appendTo: s, shouldShow: c } = e, l = r.value;
1307
- l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(cr({
1307
+ l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(lr({
1308
1308
  pluginKey: t,
1309
1309
  editor: n,
1310
1310
  element: l,
@@ -1314,10 +1314,10 @@ ie({
1314
1314
  appendTo: s,
1315
1315
  shouldShow: c
1316
1316
  })));
1317
- }), ue(() => {
1317
+ }), de(() => {
1318
1318
  let { pluginKey: t, editor: n } = e;
1319
1319
  n.unregisterPlugin(t);
1320
- }), () => ae("div", {
1320
+ }), () => oe("div", {
1321
1321
  ref: r,
1322
1322
  ...n
1323
1323
  }, t.default?.call(t));
@@ -1329,50 +1329,50 @@ var $ = (e) => ({
1329
1329
  default: null,
1330
1330
  parseHTML: (t) => t.getAttribute(e),
1331
1331
  renderHTML: (t) => t[e] ? { [e]: t[e] } : {}
1332
- }), lr = () => {
1332
+ }), ur = () => {
1333
1333
  let e = $("style");
1334
- return e.renderHTML = (e) => e.style ? { style: ur(e.style) } : {}, e;
1334
+ return e.renderHTML = (e) => e.style ? { style: dr(e.style) } : {}, e;
1335
1335
  };
1336
- function ur(e) {
1336
+ function dr(e) {
1337
1337
  return e.replace(/(?<![a-z-])width\s*:\s*([^;]+);?/gi, (e, t) => /^\s*0\s*[a-z%]*\s*(!important)?\s*$/i.test(t) ? "width: 100%;" : e);
1338
1338
  }
1339
- var dr = rt.extend({
1339
+ var fr = at.extend({
1340
1340
  addAttributes() {
1341
1341
  return {
1342
1342
  ...this.parent?.(),
1343
1343
  border: $("border"),
1344
1344
  cellpadding: $("cellpadding"),
1345
1345
  cellspacing: $("cellspacing"),
1346
- style: lr()
1346
+ style: ur()
1347
1347
  };
1348
1348
  },
1349
1349
  renderHTML({ HTMLAttributes: e }) {
1350
1350
  return [
1351
1351
  "table",
1352
- L(this.options.HTMLAttributes, e),
1352
+ I(this.options.HTMLAttributes, e),
1353
1353
  ["tbody", 0]
1354
1354
  ];
1355
1355
  }
1356
- }), fr = ot.extend({ addAttributes() {
1356
+ }), pr = ct.extend({ addAttributes() {
1357
1357
  return {
1358
1358
  ...this.parent?.(),
1359
1359
  style: $("style")
1360
1360
  };
1361
- } }), pr = {
1361
+ } }), mr = {
1362
1362
  style: $("style"),
1363
1363
  valign: $("valign"),
1364
1364
  width: $("width")
1365
- }, mr = it.extend({ addAttributes() {
1365
+ }, hr = ot.extend({ addAttributes() {
1366
1366
  return {
1367
1367
  ...this.parent?.(),
1368
- ...pr
1368
+ ...mr
1369
1369
  };
1370
- } }), hr = at.extend({ addAttributes() {
1370
+ } }), gr = st.extend({ addAttributes() {
1371
1371
  return {
1372
1372
  ...this.parent?.(),
1373
- ...pr
1373
+ ...mr
1374
1374
  };
1375
- } }), gr = st.extend({ parseHTML() {
1375
+ } }), _r = lt.extend({ parseHTML() {
1376
1376
  return [
1377
1377
  ...this.parent?.() || [],
1378
1378
  {
@@ -1386,7 +1386,7 @@ var dr = rt.extend({
1386
1386
  getAttrs: (e) => e.hasAttribute("style") ? {} : !1
1387
1387
  }
1388
1388
  ];
1389
- } }), _r = {
1389
+ } }), vr = {
1390
1390
  compatConfig: { MODE: 3 },
1391
1391
  name: "EmojiComponent",
1392
1392
  components: {
@@ -1395,17 +1395,17 @@ var dr = rt.extend({
1395
1395
  },
1396
1396
  props: T
1397
1397
  };
1398
- function vr(e, t, n, r, i, a) {
1399
- let o = P("dt-emoji"), s = P("node-view-wrapper");
1400
- return N(), O(s, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1401
- default: I(() => [M(o, {
1398
+ function yr(e, t, n, r, i, a) {
1399
+ let o = N("dt-emoji"), s = N("node-view-wrapper");
1400
+ return M(), D(s, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1401
+ default: F(() => [j(o, {
1402
1402
  size: "500",
1403
1403
  code: e.node.attrs.code
1404
1404
  }, null, 8, ["code"])]),
1405
1405
  _: 1
1406
1406
  });
1407
1407
  }
1408
- var yr = /* @__PURE__ */ i(_r, [["render", vr]]), br = {
1408
+ var br = /* @__PURE__ */ i(vr, [["render", yr]]), xr = {
1409
1409
  compatConfig: { MODE: 3 },
1410
1410
  name: "SuggestionList",
1411
1411
  components: { DtListItem: h },
@@ -1482,29 +1482,29 @@ var yr = /* @__PURE__ */ i(_r, [["render", vr]]), br = {
1482
1482
  }
1483
1483
  }
1484
1484
  }
1485
- }, xr = { class: "d-popover__dialog d-suggestion-list__container" }, Sr = {
1485
+ }, Sr = { class: "d-popover__dialog d-suggestion-list__container" }, Cr = {
1486
1486
  ref: "suggestionList",
1487
1487
  class: "d-suggestion-list"
1488
1488
  };
1489
- function Cr(e, t, n, r, i, a) {
1490
- let o = P("dt-list-item");
1491
- return N(), A("div", xr, [ge(j("ul", Sr, [(N(!0), A(D, null, pe(n.items, (e, t) => (N(), O(o, {
1489
+ function wr(e, t, n, r, i, a) {
1490
+ let o = N("dt-list-item");
1491
+ return M(), k("div", Sr, [_e(A("ul", Cr, [(M(!0), k(E, null, me(n.items, (e, t) => (M(), D(o, {
1492
1492
  key: e.id,
1493
- class: le(["d-suggestion-list__item", { "d-list-item--highlighted": t === i.selectedIndex }]),
1493
+ class: ue(["d-suggestion-list__item", { "d-list-item--highlighted": t === i.selectedIndex }]),
1494
1494
  "navigation-type": "arrow-keys",
1495
1495
  onClick: (e) => a.selectItem(t),
1496
- onKeydown: ve(a.onKeyDown, ["prevent"])
1496
+ onKeydown: ye(a.onKeyDown, ["prevent"])
1497
1497
  }, {
1498
- default: I(() => [(N(), O(me(n.itemComponent), { item: e }, null, 8, ["item"]))]),
1498
+ default: F(() => [(M(), D(he(n.itemComponent), { item: e }, null, 8, ["item"]))]),
1499
1499
  _: 2
1500
1500
  }, 1032, [
1501
1501
  "class",
1502
1502
  "onClick",
1503
1503
  "onKeydown"
1504
- ]))), 128))], 512), [[he, n.items.length]])]);
1504
+ ]))), 128))], 512), [[ge, n.items.length]])]);
1505
1505
  }
1506
- var wr = /* @__PURE__ */ i(br, [["render", Cr]]), Tr = "top-start";
1507
- function Er() {
1506
+ var Tr = /* @__PURE__ */ i(xr, [["render", wr]]), Er = "top-start";
1507
+ function Dr() {
1508
1508
  return { getBoundingClientRect: () => ({
1509
1509
  width: 0,
1510
1510
  height: 0,
@@ -1516,16 +1516,16 @@ function Er() {
1516
1516
  bottom: 0
1517
1517
  }) };
1518
1518
  }
1519
- function Dr(e) {
1519
+ function Or(e) {
1520
1520
  return { getBoundingClientRect: e };
1521
1521
  }
1522
- async function Or(e, t, n = {}) {
1522
+ async function kr(e, t, n = {}) {
1523
1523
  if (!e || !t?.getBoundingClientRect) return;
1524
- let { placement: r = Tr, middleware: i = [
1525
- Jn(0),
1526
- Zn(),
1527
- Xn({ padding: 8 })
1528
- ] } = n, { x: a, y: o } = await nr(t, e, {
1524
+ let { placement: r = Er, middleware: i = [
1525
+ Yn(0),
1526
+ Qn(),
1527
+ Zn({ padding: 8 })
1528
+ ] } = n, { x: a, y: o } = await rr(t, e, {
1529
1529
  placement: r,
1530
1530
  middleware: i
1531
1531
  });
@@ -1534,65 +1534,65 @@ async function Or(e, t, n = {}) {
1534
1534
  top: `${o}px`
1535
1535
  });
1536
1536
  }
1537
- function kr(e, t = {}) {
1537
+ function Ar(e, t = {}) {
1538
1538
  let { zIndex: n = "650" } = t;
1539
1539
  e.style.position = "absolute", e.style.zIndex = n, e.style.display = "none";
1540
1540
  }
1541
- function Ar(e) {
1541
+ function jr(e) {
1542
1542
  e && (e.style.display = "block");
1543
1543
  }
1544
- function jr(e) {
1544
+ function Mr(e) {
1545
1545
  e && (e.style.display = "none");
1546
1546
  }
1547
- function Mr(e, t) {
1547
+ function Nr(e, t) {
1548
1548
  return (n) => {
1549
1549
  n.key === "Escape" && t() && e();
1550
1550
  };
1551
1551
  }
1552
- function Nr(e) {
1552
+ function Pr(e) {
1553
1553
  document.addEventListener("keydown", e);
1554
1554
  }
1555
- function Pr(e) {
1555
+ function Fr(e) {
1556
1556
  document.removeEventListener("keydown", e);
1557
1557
  }
1558
- function Fr(e, t, n, r) {
1558
+ function Ir(e, t, n, r) {
1559
1559
  return new w(e, {
1560
1560
  props: {
1561
- itemComponent: oe(t),
1561
+ itemComponent: se(t),
1562
1562
  itemType: n,
1563
1563
  ...r
1564
1564
  },
1565
1565
  editor: r.editor
1566
1566
  });
1567
1567
  }
1568
- function Ir(e) {
1569
- e.escHandler && Pr(e.escHandler), e.floatingEl?.remove(), e.component?.destroy();
1568
+ function Lr(e) {
1569
+ e.escHandler && Fr(e.escHandler), e.floatingEl?.remove(), e.component?.destroy();
1570
1570
  }
1571
- function Lr(e, t, n = {}) {
1572
- let { listComponent: r = wr, placement: i = Tr, zIndex: a = "650" } = n;
1571
+ function Rr(e, t, n = {}) {
1572
+ let { listComponent: r = Tr, placement: i = Er, zIndex: a = "650" } = n;
1573
1573
  return () => {
1574
- let n = null, o = null, s = !1, c = Er(), l = null;
1574
+ let n = null, o = null, s = !1, c = Dr(), l = null;
1575
1575
  function u() {
1576
- Or(o, c, { placement: i });
1576
+ kr(o, c, { placement: i });
1577
1577
  }
1578
1578
  function d() {
1579
- o && (Ar(o), s = !0, u());
1579
+ o && (jr(o), s = !0, u());
1580
1580
  }
1581
1581
  function f() {
1582
- o && (jr(o), s = !1);
1582
+ o && (Mr(o), s = !1);
1583
1583
  }
1584
1584
  return {
1585
1585
  onStart: (i) => {
1586
- n = Fr(r, e, t, i), i.clientRect && (o = n.element, kr(o, { zIndex: a }), document.body.appendChild(o), c = Dr(i.clientRect), l = Mr(f, () => s), Nr(l), i.items.length > 0 && d());
1586
+ n = Ir(r, e, t, i), i.clientRect && (o = n.element, Ar(o, { zIndex: a }), document.body.appendChild(o), c = Or(i.clientRect), l = Nr(f, () => s), Pr(l), i.items.length > 0 && d());
1587
1587
  },
1588
1588
  onUpdate(e) {
1589
- n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c = Dr(e.clientRect), u());
1589
+ n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c = Or(e.clientRect), u());
1590
1590
  },
1591
1591
  onKeyDown(e) {
1592
1592
  if (s) return n?.ref?.onKeyDown(e);
1593
1593
  },
1594
1594
  onExit() {
1595
- Ir({
1595
+ Lr({
1596
1596
  escHandler: l,
1597
1597
  floatingEl: o,
1598
1598
  component: n
@@ -1603,7 +1603,7 @@ function Lr(e, t, n = {}) {
1603
1603
  }
1604
1604
  //#endregion
1605
1605
  //#region components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue
1606
- var Rr = {
1606
+ var zr = {
1607
1607
  compatConfig: { MODE: 3 },
1608
1608
  name: "EmojiSuggestion",
1609
1609
  components: {
@@ -1615,23 +1615,23 @@ var Rr = {
1615
1615
  required: !0
1616
1616
  } }
1617
1617
  };
1618
- function zr(e, t, n, r, i, a) {
1619
- let o = P("dt-emoji"), s = P("dt-stack");
1620
- return N(), O(s, {
1618
+ function Br(e, t, n, r, i, a) {
1619
+ let o = N("dt-emoji"), s = N("dt-stack");
1620
+ return M(), D(s, {
1621
1621
  direction: "row",
1622
1622
  gap: "400"
1623
1623
  }, {
1624
- default: I(() => [M(o, {
1624
+ default: F(() => [j(o, {
1625
1625
  size: "200",
1626
1626
  code: n.item.code
1627
- }, null, 8, ["code"]), re(" " + F(n.item.code), 1)]),
1627
+ }, null, 8, ["code"]), ie(" " + P(n.item.code), 1)]),
1628
1628
  _: 1
1629
1629
  });
1630
1630
  }
1631
- var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1631
+ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
1632
1632
  let r = e.shortname?.replaceAll(":", ""), i = t.shortname?.replaceAll(":", ""), a = r.startsWith(n), o = i.startsWith(n);
1633
1633
  return a && !o ? -1 : !a && o ? 1 : r.localeCompare(i);
1634
- }, Ur = {
1634
+ }, Wr = {
1635
1635
  items: ({ query: e }) => {
1636
1636
  if (e.length < 2) return [];
1637
1637
  let t = Object.values(c());
@@ -1639,7 +1639,7 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1639
1639
  t.name,
1640
1640
  t.shortname?.replaceAll(":", ""),
1641
1641
  ...t.keywords || []
1642
- ].some((t) => t && t.startsWith(e))).splice(0, Vr).sort((t, n) => Hr(t, n, e)).map((e) => ({ code: e.shortname }));
1642
+ ].some((t) => t && t.startsWith(e))).splice(0, Hr).sort((t, n) => Ur(t, n, e)).map((e) => ({ code: e.shortname }));
1643
1643
  },
1644
1644
  command: ({ editor: e, range: t, props: n }) => {
1645
1645
  e.view.state.selection.$to.nodeAfter?.text?.startsWith(" ") && (t.to += 1), e.chain().focus().insertContentAt(t, [{
@@ -1647,14 +1647,14 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1647
1647
  attrs: n
1648
1648
  }]).run(), window.getSelection()?.collapseToEnd();
1649
1649
  },
1650
- render: Lr(Br, "emoji")
1651
- }, Wr = /(:\w+:)$/, Gr = RegExp(ye + "$"), Kr = (e) => {
1650
+ render: Rr(Vr, "emoji")
1651
+ }, Gr = /(:\w+:)$/, Kr = RegExp(be + "$"), qr = (e) => {
1652
1652
  if (e && a(e[0])) return { text: e[2] || e[0] };
1653
- }, qr = (e) => [...e.matchAll(s)].filter((e) => a(e[0])).map((e) => ({
1653
+ }, Jr = (e) => [...e.matchAll(s)].filter((e) => a(e[0])).map((e) => ({
1654
1654
  index: e.index,
1655
1655
  text: e[0],
1656
1656
  match: e
1657
- })), Jr = we.create({
1657
+ })), Yr = Te.create({
1658
1658
  name: "emoji",
1659
1659
  addOptions() {
1660
1660
  return { HTMLAttributes: {} };
@@ -1664,7 +1664,7 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1664
1664
  selectable: !1,
1665
1665
  atom: !0,
1666
1666
  addNodeView() {
1667
- return C(yr);
1667
+ return C(br);
1668
1668
  },
1669
1669
  addAttributes() {
1670
1670
  return { code: { default: null } };
@@ -1676,13 +1676,13 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1676
1676
  return l(a(e.attrs.code).unicode_output);
1677
1677
  },
1678
1678
  renderHTML({ HTMLAttributes: e }) {
1679
- return ["emoji-component", L(this.options.HTMLAttributes, e)];
1679
+ return ["emoji-component", I(this.options.HTMLAttributes, e)];
1680
1680
  },
1681
1681
  addInputRules() {
1682
- return [new Se({
1682
+ return [new Ce({
1683
1683
  find: (e) => {
1684
- let t = e.match(Wr) || e.match(Gr);
1685
- if (t) return Kr(t);
1684
+ let t = e.match(Gr) || e.match(Kr);
1685
+ if (t) return qr(t);
1686
1686
  },
1687
1687
  handler: ({ state: e, range: t, match: n }) => {
1688
1688
  let { tr: r } = e, i = t.from, a = t.to;
@@ -1691,13 +1691,13 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1691
1691
  })];
1692
1692
  },
1693
1693
  addPasteRules() {
1694
- return [Ne({
1695
- find: qr,
1694
+ return [Fe({
1695
+ find: Jr,
1696
1696
  type: this.type,
1697
1697
  getAttributes(e) {
1698
1698
  return { code: e[0] };
1699
1699
  }
1700
- }), Ne({
1700
+ }), Fe({
1701
1701
  find: o,
1702
1702
  type: this.type,
1703
1703
  getAttributes(e) {
@@ -1706,12 +1706,12 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1706
1706
  })];
1707
1707
  },
1708
1708
  addProseMirrorPlugins() {
1709
- return [lt({
1709
+ return [dt({
1710
1710
  char: ":",
1711
- pluginKey: new R("emoji"),
1711
+ pluginKey: new L("emoji"),
1712
1712
  editor: this.editor,
1713
1713
  ...this.options.suggestion,
1714
- ...Ur
1714
+ ...Wr
1715
1715
  })];
1716
1716
  },
1717
1717
  addKeyboardShortcuts() {
@@ -1725,21 +1725,21 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1725
1725
  });
1726
1726
  //#endregion
1727
1727
  //#region components/rich_text_editor/extensions/custom_link/utils.js
1728
- function Yr(e, t, n = () => !0) {
1728
+ function Xr(e, t, n = () => !0) {
1729
1729
  let r = [];
1730
1730
  t.lastIndex = 0;
1731
1731
  let i;
1732
1732
  for (; i = t.exec(e);) n(e, i) && r.push(i);
1733
1733
  return r;
1734
1734
  }
1735
- function Xr(e, t) {
1735
+ function Zr(e, t) {
1736
1736
  return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
1737
1737
  }
1738
- function Zr(e) {
1738
+ function Qr(e) {
1739
1739
  let t = RegExp("(?:" + ["[!?.,:;'\"]", "(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
1740
1740
  return e.replace(t, "");
1741
1741
  }
1742
- function Qr(e, t) {
1742
+ function $r(e, t) {
1743
1743
  let n = e.slice(0, t + 1).search(/\S+\s*$/), r = e.slice(t).search(/\s/);
1744
1744
  if (r < 0) {
1745
1745
  let t = e.slice(n);
@@ -1755,62 +1755,89 @@ function Qr(e, t) {
1755
1755
  to: r + t
1756
1756
  };
1757
1757
  }
1758
- function $r(e, t, n, r) {
1759
- let i = Qr(e, t);
1758
+ function ei(e, t, n, r) {
1759
+ let i = $r(e, t);
1760
1760
  if (r.lastIndex = 0, !r.test(i.text)) return i;
1761
1761
  let a = n === "left" ? i.from - 1 : i.to + 1;
1762
- return a <= 0 || a >= e.length || a === t ? i : $r(e, a, n, r);
1762
+ return a <= 0 || a >= e.length || a === t ? i : ei(e, a, n, r);
1763
1763
  }
1764
- function ei(e, t, n, r) {
1765
- let i = Oe(Math.max(e.from - 1, 0), Math.min(e.to + 1, t.content.size), t);
1764
+ function ti(e, t, n, r) {
1765
+ let i = Ae(Math.max(e.from - 1, 0), Math.min(e.to + 1, t.content.size), t);
1766
1766
  for (let e of i) e.mark.type === r && n.removeMark(e.from, e.to, r);
1767
1767
  }
1768
- var ti = e(1, 15);
1769
- function ni(e, n, r, i, a, o) {
1768
+ var ni = e(1, 15);
1769
+ function ri(e, n, r, i, a, o) {
1770
1770
  if (!e) return;
1771
1771
  let s = r - n - 1;
1772
1772
  s = s < 0 ? 0 : s;
1773
- let c = i - n, l = $r(e, s, "left", ti), u = $r(e, c, "right", ti);
1774
- Yr(e.slice(l.from, u.to), t, Xr).forEach((e) => {
1775
- let t = Zr(e[0]), r = n + l.from + e.index + 1, i = r + t.length;
1773
+ let c = i - n, l = ei(e, s, "left", ni), u = ei(e, c, "right", ni);
1774
+ Xr(e.slice(l.from, u.to), t, Zr).forEach((e) => {
1775
+ let t = Qr(e[0]), r = n + l.from + e.index + 1, i = r + t.length;
1776
1776
  a.addMark(r, i, o.create());
1777
1777
  });
1778
1778
  }
1779
1779
  //#endregion
1780
1780
  //#region components/rich_text_editor/extensions/custom_link/autolink.js
1781
- function ri(e) {
1781
+ function ii(e) {
1782
1782
  let t = !1;
1783
- return new Ie({
1784
- key: new R("autolink"),
1783
+ return new Re({
1784
+ key: new L("autolink"),
1785
1785
  appendTransaction: (n, r, i) => {
1786
1786
  let a = n.some((e) => e.docChanged) && !r.doc.eq(i.doc);
1787
1787
  if (t && !a) return;
1788
1788
  let { tr: o } = i, { textContent: s } = i.doc;
1789
- return t || ni(s, 0, 0, s.length, o, e.type), t = !0, De(Te(r.doc, [...n])).forEach(({ oldRange: t, newRange: n }) => {
1790
- ei(n, i.doc, o, e.type), Ee(i.doc, n, (e) => e.isTextblock).forEach(({ node: r, pos: i }) => {
1791
- ni(r.textContent, i, t.from, n.to, o, e.type);
1789
+ if (!t || !r.doc.textContent) return ri(s, 0, 0, s.length, o, e.type), t = !0, o;
1790
+ t = !0;
1791
+ let c = Oe(Ee(r.doc, [...n]));
1792
+ return c.length ? (c.forEach(({ oldRange: t, newRange: n }) => {
1793
+ if (n.from === n.to) {
1794
+ ri(s, 0, 0, s.length, o, e.type);
1795
+ return;
1796
+ }
1797
+ ti(n, i.doc, o, e.type), De(i.doc, n, (e) => e.isTextblock).forEach(({ node: r, pos: i }) => {
1798
+ ri(r.textContent, i, t.from, n.to, o, e.type);
1792
1799
  });
1793
- }), o;
1800
+ }), o) : (ri(s, 0, 0, s.length, o, e.type), o);
1794
1801
  }
1795
1802
  });
1796
1803
  }
1797
1804
  //#endregion
1798
1805
  //#region components/rich_text_editor/extensions/custom_link/custom_link.js
1799
- var ii = {
1806
+ var ai = {
1800
1807
  class: "d-link d-c-text d-d-inline-block d-wb-break-all",
1801
1808
  rel: "noopener noreferrer nofollow"
1802
- }, ai = Ce.create({
1809
+ }, oi = we.create({
1803
1810
  name: "CustomLink",
1804
1811
  renderHTML({ HTMLAttributes: e }) {
1805
- return ["a", L(this.options.HTMLAttributes, e, ii)];
1812
+ return ["a", I(this.options.HTMLAttributes, e, ai)];
1806
1813
  },
1807
1814
  renderText({ node: e }) {
1808
1815
  return e.attrs.text;
1809
1816
  },
1810
1817
  addProseMirrorPlugins() {
1811
- return [ri({ type: this.type })];
1818
+ return [ii({ type: this.type })];
1812
1819
  }
1813
- }), oi = ut.extend({
1820
+ }), si = we.create({
1821
+ name: "LinkPhoneNumbers",
1822
+ renderHTML({ HTMLAttributes: e }) {
1823
+ return ["a", I(e, {
1824
+ class: "d-link d-c-pointer d-d-inline-block d-wb-break-all",
1825
+ rel: "noopener noreferrer nofollow"
1826
+ })];
1827
+ },
1828
+ addProseMirrorPlugins() {
1829
+ let e = this.editor, t = this.type;
1830
+ return [new Re({
1831
+ key: new L("phoneClick"),
1832
+ props: { handleClick(n, r, i) {
1833
+ let { state: a } = n, o = a.doc.resolve(r);
1834
+ if (!o.marks().some((e) => e.type === t)) return !1;
1835
+ let s = ke(o, t), c = s ? a.doc.textBetween(s.from, s.to) : "";
1836
+ return i.preventDefault(), e.emit("phone-click", { phoneNumber: c }), !0;
1837
+ } }
1838
+ })];
1839
+ }
1840
+ }), ci = ft.extend({
1814
1841
  name: "ConfigurableImage",
1815
1842
  addAttributes() {
1816
1843
  return {
@@ -1825,12 +1852,12 @@ var ii = {
1825
1852
  }).configure({
1826
1853
  inline: !0,
1827
1854
  allowBase64: !0
1828
- }), si = new Set(/* @__PURE__ */ "address.article.aside.blockquote.dd.details.dialog.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.ol.p.pre.section.table.ul".split(".")), ci = Ke.extend({
1855
+ }), li = new Set(/* @__PURE__ */ "address.article.aside.blockquote.dd.details.dialog.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.ol.p.pre.section.table.ul".split(".")), ui = Je.extend({
1829
1856
  parseHTML() {
1830
1857
  return [{
1831
1858
  tag: "div",
1832
1859
  getAttrs: (e) => {
1833
- for (let t of e.children) if (si.has(t.tagName.toLowerCase())) return !1;
1860
+ for (let t of e.children) if (li.has(t.tagName.toLowerCase())) return !1;
1834
1861
  return null;
1835
1862
  }
1836
1863
  }];
@@ -1838,11 +1865,11 @@ var ii = {
1838
1865
  renderHTML({ HTMLAttributes: e }) {
1839
1866
  return [
1840
1867
  "div",
1841
- L(this.options.HTMLAttributes, e),
1868
+ I(this.options.HTMLAttributes, e),
1842
1869
  0
1843
1870
  ];
1844
1871
  }
1845
- }), li = {
1872
+ }), di = {
1846
1873
  compatConfig: { MODE: 3 },
1847
1874
  name: "MentionComponent",
1848
1875
  components: {
@@ -1879,18 +1906,18 @@ var ii = {
1879
1906
  }
1880
1907
  }
1881
1908
  };
1882
- function ui(e, t, n, r, i, a) {
1883
- let o = P("dt-link"), s = P("node-view-wrapper");
1884
- return N(), O(s, { class: "d-d-inline-block" }, {
1885
- default: I(() => [M(o, {
1909
+ function fi(e, t, n, r, i, a) {
1910
+ let o = N("dt-link"), s = N("node-view-wrapper");
1911
+ return M(), D(s, { class: "d-d-inline-block" }, {
1912
+ default: F(() => [j(o, {
1886
1913
  kind: "mention",
1887
- onClick: ve(a.handleClick, ["prevent"]),
1914
+ onClick: ye(a.handleClick, ["prevent"]),
1888
1915
  onMouseenter: a.handleMouseEnter,
1889
1916
  onMouseleave: a.handleMouseLeave,
1890
1917
  onFocusin: a.handleMouseEnter,
1891
1918
  onFocusout: a.handleMouseLeave
1892
1919
  }, {
1893
- default: I(() => [re(F(a.text), 1)]),
1920
+ default: F(() => [ie(P(a.text), 1)]),
1894
1921
  _: 1
1895
1922
  }, 8, [
1896
1923
  "onClick",
@@ -1902,9 +1929,9 @@ function ui(e, t, n, r, i, a) {
1902
1929
  _: 1
1903
1930
  });
1904
1931
  }
1905
- var di = /* @__PURE__ */ i(li, [["render", ui]]), fi = dt.extend({
1932
+ var pi = /* @__PURE__ */ i(di, [["render", fi]]), mi = pt.extend({
1906
1933
  addNodeView() {
1907
- return C(di);
1934
+ return C(pi);
1908
1935
  },
1909
1936
  parseHTML() {
1910
1937
  return [{ tag: "mention-component" }];
@@ -1921,18 +1948,18 @@ var di = /* @__PURE__ */ i(li, [["render", ui]]), fi = dt.extend({
1921
1948
  return `@${e.attrs.id}`;
1922
1949
  },
1923
1950
  renderHTML({ HTMLAttributes: e }) {
1924
- return ["mention-component", L(this.options.HTMLAttributes, e)];
1951
+ return ["mention-component", I(this.options.HTMLAttributes, e)];
1925
1952
  }
1926
1953
  }).configure({ suggestion: {
1927
1954
  char: "@",
1928
- pluginKey: new R("mentionSuggestion")
1929
- } }), pi = {
1955
+ pluginKey: new L("mentionSuggestion")
1956
+ } }), hi = {
1930
1957
  compatConfig: { MODE: 3 },
1931
1958
  name: "ChannelComponent",
1932
1959
  components: {
1933
1960
  NodeViewWrapper: S,
1934
1961
  DtLink: f,
1935
- DtIconLock: be,
1962
+ DtIconLock: xe,
1936
1963
  DtStack: g
1937
1964
  },
1938
1965
  props: T,
@@ -1949,21 +1976,21 @@ var di = /* @__PURE__ */ i(li, [["render", ui]]), fi = dt.extend({
1949
1976
  this.$props.editor.emit("channel-click", e);
1950
1977
  } }
1951
1978
  };
1952
- function mi(e, t, n, r, i, a) {
1953
- let o = P("dt-icon-lock"), s = P("dt-stack"), c = P("dt-link"), l = P("node-view-wrapper");
1954
- return N(), O(l, { class: "d-d-inline-block" }, {
1955
- default: I(() => [M(c, {
1979
+ function gi(e, t, n, r, i, a) {
1980
+ let o = N("dt-icon-lock"), s = N("dt-stack"), c = N("dt-link"), l = N("node-view-wrapper");
1981
+ return M(), D(l, { class: "d-d-inline-block" }, {
1982
+ default: F(() => [j(c, {
1956
1983
  kind: "mention",
1957
- onClick: ve(a.handleClick, ["prevent"])
1984
+ onClick: ye(a.handleClick, ["prevent"])
1958
1985
  }, {
1959
- default: I(() => [M(s, {
1986
+ default: F(() => [j(s, {
1960
1987
  direction: "row",
1961
1988
  gap: "0"
1962
1989
  }, {
1963
- default: I(() => [e.$props.node.attrs.locked ? (N(), O(o, {
1990
+ default: F(() => [e.$props.node.attrs.locked ? (M(), D(o, {
1964
1991
  key: 0,
1965
1992
  size: "200"
1966
- })) : k("", !0), j("span", null, F(a.text), 1)]),
1993
+ })) : O("", !0), A("span", null, P(a.text), 1)]),
1967
1994
  _: 1
1968
1995
  })]),
1969
1996
  _: 1
@@ -1971,10 +1998,10 @@ function mi(e, t, n, r, i, a) {
1971
1998
  _: 1
1972
1999
  });
1973
2000
  }
1974
- var hi = /* @__PURE__ */ i(pi, [["render", mi]]), gi = dt.extend({
2001
+ var _i = /* @__PURE__ */ i(hi, [["render", gi]]), vi = pt.extend({
1975
2002
  name: "channel",
1976
2003
  addNodeView() {
1977
- return C(hi);
2004
+ return C(_i);
1978
2005
  },
1979
2006
  parseHTML() {
1980
2007
  return [{ tag: "channel-component" }];
@@ -1991,12 +2018,12 @@ var hi = /* @__PURE__ */ i(pi, [["render", mi]]), gi = dt.extend({
1991
2018
  return `#${e.attrs.id}`;
1992
2019
  },
1993
2020
  renderHTML({ HTMLAttributes: e }) {
1994
- return ["channel-component", L(this.options.HTMLAttributes, e)];
2021
+ return ["channel-component", I(this.options.HTMLAttributes, e)];
1995
2022
  }
1996
2023
  }).configure({ suggestion: {
1997
2024
  char: "#",
1998
- pluginKey: new R("channelSuggestion")
1999
- } }), _i = {
2025
+ pluginKey: new L("channelSuggestion")
2026
+ } }), yi = {
2000
2027
  compatConfig: { MODE: 3 },
2001
2028
  name: "SlashCommandsComponent",
2002
2029
  components: { NodeViewWrapper: S },
@@ -2012,21 +2039,21 @@ var hi = /* @__PURE__ */ i(pi, [["render", mi]]), gi = dt.extend({
2012
2039
  t && typeof t == "function" && t(e);
2013
2040
  }
2014
2041
  };
2015
- function vi(e, t, n, r, i, a) {
2016
- let o = P("node-view-wrapper");
2017
- return N(), O(o, { class: "d-d-inline-block" }, {
2018
- default: I(() => [re(F(a.text), 1)]),
2042
+ function bi(e, t, n, r, i, a) {
2043
+ let o = N("node-view-wrapper");
2044
+ return M(), D(o, { class: "d-d-inline-block" }, {
2045
+ default: F(() => [ie(P(a.text), 1)]),
2019
2046
  _: 1
2020
2047
  });
2021
2048
  }
2022
- var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(t)].map((e) => {
2049
+ var xi = /* @__PURE__ */ i(yi, [["render", bi]]), Si = (e, t) => [...e.matchAll(t)].map((e) => {
2023
2050
  let t = e[2];
2024
2051
  return t.endsWith(" ") || (t += " "), {
2025
2052
  index: e.index,
2026
2053
  text: t,
2027
2054
  match: e
2028
2055
  };
2029
- }), xi = dt.extend({
2056
+ }), Ci = pt.extend({
2030
2057
  name: "slash-commands",
2031
2058
  group: "inline",
2032
2059
  inline: !0,
@@ -2040,7 +2067,7 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
2040
2067
  return { onSelectedCommand: this.options.onSelectedCommand };
2041
2068
  },
2042
2069
  addNodeView() {
2043
- return C(yi);
2070
+ return C(xi);
2044
2071
  },
2045
2072
  parseHTML() {
2046
2073
  return [{ tag: "command-component" }];
@@ -2056,11 +2083,11 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
2056
2083
  return `/${e.attrs.command}`;
2057
2084
  },
2058
2085
  renderHTML({ HTMLAttributes: e }) {
2059
- return ["command-component", L(this.options.HTMLAttributes, e)];
2086
+ return ["command-component", I(this.options.HTMLAttributes, e)];
2060
2087
  },
2061
2088
  addInputRules() {
2062
2089
  let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command);
2063
- return [Me({
2090
+ return [Pe({
2064
2091
  find: RegExp(`^((?:\\/)(${e.join("|")})) $`),
2065
2092
  type: this.type,
2066
2093
  getAttributes(e) {
@@ -2070,8 +2097,8 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
2070
2097
  },
2071
2098
  addPasteRules() {
2072
2099
  let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command), t = RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
2073
- return [Ne({
2074
- find: (e) => bi(e, t),
2100
+ return [Fe({
2101
+ find: (e) => Si(e, t),
2075
2102
  type: this.type,
2076
2103
  getAttributes(e) {
2077
2104
  return { command: e[0].trim() };
@@ -2080,8 +2107,8 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
2080
2107
  }
2081
2108
  }).configure({ suggestion: {
2082
2109
  char: "/",
2083
- pluginKey: new R("slashCommandSuggestion")
2084
- } }), Si = 100, Ci = {
2110
+ pluginKey: new L("slashCommandSuggestion")
2111
+ } }), wi = 100, Ti = {
2085
2112
  name: "VariableComponent",
2086
2113
  components: {
2087
2114
  DtBadge: d,
@@ -2094,7 +2121,7 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
2094
2121
  data() {
2095
2122
  return {
2096
2123
  i18n: new p(),
2097
- MAX_VARIABLE_ALT_LENGTH: Si
2124
+ MAX_VARIABLE_ALT_LENGTH: wi
2098
2125
  };
2099
2126
  },
2100
2127
  computed: {
@@ -2129,24 +2156,24 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
2129
2156
  }
2130
2157
  }
2131
2158
  };
2132
- function wi(e, t, n, r, i, a) {
2133
- let o = P("dt-badge"), s = P("dt-button"), c = P("dt-input"), l = P("dt-popover"), u = P("node-view-wrapper");
2134
- return N(), O(u, { class: "d-d-inline-block" }, {
2135
- default: I(() => [a.enableAltText ? (N(), O(l, {
2159
+ function Ei(e, t, n, r, i, a) {
2160
+ let o = N("dt-badge"), s = N("dt-button"), c = N("dt-input"), l = N("dt-popover"), u = N("node-view-wrapper");
2161
+ return M(), D(u, { class: "d-d-inline-block" }, {
2162
+ default: F(() => [a.enableAltText ? (M(), D(l, {
2136
2163
  key: 0,
2137
2164
  padding: "small",
2138
2165
  "navigation-type": "arrow-keys",
2139
2166
  placement: "top-start",
2140
2167
  modal: !1
2141
2168
  }, {
2142
- anchor: I(({ attrs: e }) => [M(s, se(e, { kind: "unstyled" }), {
2143
- default: I(() => [M(o, {
2169
+ anchor: F(({ attrs: e }) => [j(s, ce(e, { kind: "unstyled" }), {
2170
+ default: F(() => [j(o, {
2144
2171
  text: a.badgeLabel,
2145
2172
  contenteditable: "false"
2146
2173
  }, null, 8, ["text"])]),
2147
2174
  _: 1
2148
2175
  }, 16)]),
2149
- content: I(({ close: e }) => [M(c, {
2176
+ content: F(({ close: e }) => [j(c, {
2150
2177
  modelValue: a.altText,
2151
2178
  "onUpdate:modelValue": t[0] || (t[0] = (e) => a.altText = e),
2152
2179
  "root-class": "d-p8 d-w332",
@@ -2159,7 +2186,7 @@ function wi(e, t, n, r, i, a) {
2159
2186
  warn: i.MAX_VARIABLE_ALT_LENGTH,
2160
2187
  limitMaxLength: !0
2161
2188
  } },
2162
- onKeyup: _e((t) => e(), ["enter"])
2189
+ onKeyup: ve((t) => e(), ["enter"])
2163
2190
  }, null, 8, [
2164
2191
  "modelValue",
2165
2192
  "label",
@@ -2168,7 +2195,7 @@ function wi(e, t, n, r, i, a) {
2168
2195
  "onKeyup"
2169
2196
  ])]),
2170
2197
  _: 1
2171
- })) : (N(), O(o, {
2198
+ })) : (M(), D(o, {
2172
2199
  key: 1,
2173
2200
  text: a.badgeLabel,
2174
2201
  contenteditable: "false"
@@ -2176,7 +2203,7 @@ function wi(e, t, n, r, i, a) {
2176
2203
  _: 1
2177
2204
  });
2178
2205
  }
2179
- var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
2206
+ var Di = /* @__PURE__ */ i(Ti, [["render", Ei]]), Oi = Te.create({
2180
2207
  name: "variable",
2181
2208
  group: "inline",
2182
2209
  inline: !0,
@@ -2189,7 +2216,7 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
2189
2216
  };
2190
2217
  },
2191
2218
  addNodeView() {
2192
- return C(Ti);
2219
+ return C(Di);
2193
2220
  },
2194
2221
  addAttributes() {
2195
2222
  return {
@@ -2217,7 +2244,7 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
2217
2244
  return e.attrs.altText;
2218
2245
  },
2219
2246
  renderHTML({ node: e, HTMLAttributes: t }) {
2220
- return ["variable", L(this.options.HTMLAttributes, t, {
2247
+ return ["variable", I(this.options.HTMLAttributes, t, {
2221
2248
  "data-variable-id": e.attrs.id,
2222
2249
  "data-alt-text": e.attrs.altText,
2223
2250
  "data-enable-alt-text": String(e.attrs.enableAltText)
@@ -2233,7 +2260,7 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
2233
2260
  }
2234
2261
  }) };
2235
2262
  }
2236
- }), Di = {
2263
+ }), ki = {
2237
2264
  compatConfig: { MODE: 3 },
2238
2265
  name: "MentionSuggestion",
2239
2266
  components: {
@@ -2272,21 +2299,21 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
2272
2299
  return this.item.showDetails;
2273
2300
  }
2274
2301
  }
2275
- }, Oi = { class: "d-mention-suggestion__name" }, ki = {
2302
+ }, Ai = { class: "d-mention-suggestion__name" }, ji = {
2276
2303
  key: 1,
2277
2304
  class: "d-mention-suggestion__divider"
2278
- }, Ai = {
2305
+ }, Mi = {
2279
2306
  key: 2,
2280
2307
  class: "d-mention-suggestion__status"
2281
2308
  };
2282
- function ji(e, t, n, r, i, a) {
2283
- let o = P("dt-avatar"), s = P("dt-stack");
2284
- return N(), O(s, {
2309
+ function Ni(e, t, n, r, i, a) {
2310
+ let o = N("dt-avatar"), s = N("dt-stack");
2311
+ return M(), D(s, {
2285
2312
  direction: "row",
2286
2313
  class: "d-mention-suggestion__container",
2287
2314
  gap: "400"
2288
2315
  }, {
2289
- default: I(() => [M(o, {
2316
+ default: F(() => [j(o, {
2290
2317
  "full-name": a.name,
2291
2318
  "image-src": a.avatarSrc,
2292
2319
  "image-alt": a.name,
@@ -2299,26 +2326,26 @@ function ji(e, t, n, r, i, a) {
2299
2326
  "image-alt",
2300
2327
  "show-presence",
2301
2328
  "presence"
2302
- ]), M(s, {
2329
+ ]), j(s, {
2303
2330
  class: "d-mention-suggestion__details-container",
2304
2331
  gap: "100"
2305
2332
  }, {
2306
- default: I(() => [j("span", Oi, F(a.name), 1), a.showDetails ? (N(), O(s, {
2333
+ default: F(() => [A("span", Ai, P(a.name), 1), a.showDetails ? (M(), D(s, {
2307
2334
  key: 0,
2308
2335
  direction: "row",
2309
2336
  gap: "300",
2310
2337
  class: "d-label--sm-plain"
2311
2338
  }, {
2312
- default: I(() => [
2313
- a.presenceText ? (N(), A("span", {
2339
+ default: F(() => [
2340
+ a.presenceText ? (M(), k("span", {
2314
2341
  key: 0,
2315
- class: le(["d-mention-suggestion__presence", [a.presenceFontColorClass]])
2316
- }, F(a.presenceText), 3)) : k("", !0),
2317
- a.status && a.presenceText ? (N(), A("div", ki, " • ")) : k("", !0),
2318
- a.status ? (N(), A("div", Ai, F(a.status), 1)) : k("", !0)
2342
+ class: ue(["d-mention-suggestion__presence", [a.presenceFontColorClass]])
2343
+ }, P(a.presenceText), 3)) : O("", !0),
2344
+ a.status && a.presenceText ? (M(), k("div", ji, " • ")) : O("", !0),
2345
+ a.status ? (M(), k("div", Mi, P(a.status), 1)) : O("", !0)
2319
2346
  ]),
2320
2347
  _: 1
2321
- })) : k("", !0)]),
2348
+ })) : O("", !0)]),
2322
2349
  _: 1
2323
2350
  })]),
2324
2351
  _: 1
@@ -2326,16 +2353,16 @@ function ji(e, t, n, r, i, a) {
2326
2353
  }
2327
2354
  //#endregion
2328
2355
  //#region components/rich_text_editor/extensions/mentions/suggestion.js
2329
- var Mi = {
2356
+ var Pi = {
2330
2357
  allowSpaces: !0,
2331
- render: Lr(/* @__PURE__ */ i(Di, [["render", ji]]), "mention")
2332
- }, Ni = {
2358
+ render: Rr(/* @__PURE__ */ i(ki, [["render", Ni]]), "mention")
2359
+ }, Fi = {
2333
2360
  compatConfig: { MODE: 3 },
2334
2361
  name: "ChannelSuggestion",
2335
2362
  components: {
2336
2363
  DtStack: g,
2337
- DtIconHash: ft,
2338
- DtIconLock: pt
2364
+ DtIconHash: mt,
2365
+ DtIconLock: ht
2339
2366
  },
2340
2367
  props: { item: {
2341
2368
  type: Object,
@@ -2345,28 +2372,28 @@ var Mi = {
2345
2372
  return this.item.name;
2346
2373
  } }
2347
2374
  };
2348
- function Pi(e, t, n, r, i, a) {
2349
- let o = P("dt-icon-hash"), s = P("dt-icon-lock"), c = P("dt-stack");
2350
- return N(), O(c, {
2375
+ function Ii(e, t, n, r, i, a) {
2376
+ let o = N("dt-icon-hash"), s = N("dt-icon-lock"), c = N("dt-stack");
2377
+ return M(), D(c, {
2351
2378
  direction: "row",
2352
2379
  gap: "400"
2353
2380
  }, {
2354
- default: I(() => [n.item.locked ? (N(), O(s, {
2381
+ default: F(() => [n.item.locked ? (M(), D(s, {
2355
2382
  key: 1,
2356
2383
  size: "300"
2357
- })) : (N(), O(o, {
2384
+ })) : (M(), D(o, {
2358
2385
  key: 0,
2359
2386
  size: "300"
2360
- })), j("span", null, F(a.name), 1)]),
2387
+ })), A("span", null, P(a.name), 1)]),
2361
2388
  _: 1
2362
2389
  });
2363
2390
  }
2364
2391
  //#endregion
2365
2392
  //#region components/rich_text_editor/extensions/channels/suggestion.js
2366
- var Fi = {
2393
+ var Li = {
2367
2394
  allowSpaces: !0,
2368
- render: Lr(/* @__PURE__ */ i(Ni, [["render", Pi]]), "channel")
2369
- }, Ii = {
2395
+ render: Rr(/* @__PURE__ */ i(Fi, [["render", Ii]]), "channel")
2396
+ }, Ri = {
2370
2397
  compatConfig: { MODE: 3 },
2371
2398
  name: "SlashCommandSuggestion",
2372
2399
  props: { item: {
@@ -2384,22 +2411,22 @@ var Fi = {
2384
2411
  return this.item.parametersExample;
2385
2412
  }
2386
2413
  }
2387
- }, Li = { class: "d-body--md-compact" }, Ri = { key: 0 }, zi = { class: "d-body--sm d-fc-tertiary" };
2388
- function Bi(e, t, n, r, i, a) {
2389
- return N(), A("div", null, [j("div", Li, [j("span", null, "/" + F(a.command), 1), a.parametersExample ? (N(), A("span", Ri, F(a.parametersExample), 1)) : k("", !0)]), j("div", zi, F(a.description), 1)]);
2414
+ }, zi = { class: "d-body--md-compact" }, Bi = { key: 0 }, Vi = { class: "d-body--sm d-fc-tertiary" };
2415
+ function Hi(e, t, n, r, i, a) {
2416
+ return M(), k("div", null, [A("div", zi, [A("span", null, "/" + P(a.command), 1), a.parametersExample ? (M(), k("span", Bi, P(a.parametersExample), 1)) : O("", !0)]), A("div", Vi, P(a.description), 1)]);
2390
2417
  }
2391
2418
  //#endregion
2392
2419
  //#region components/rich_text_editor/extensions/slash_command/suggestion.js
2393
- var Vi = {
2420
+ var Ui = {
2394
2421
  allowSpaces: !0,
2395
2422
  startOfLine: !0,
2396
- render: Lr(/* @__PURE__ */ i(Ii, [["render", Bi]]), "slash-command")
2397
- }, Hi = {
2423
+ render: Rr(/* @__PURE__ */ i(Ri, [["render", Hi]]), "slash-command")
2424
+ }, Wi = {
2398
2425
  compatConfig: { MODE: 3 },
2399
2426
  name: "DtRichTextEditor",
2400
2427
  components: {
2401
2428
  EditorContent: x,
2402
- BubbleMenu: or,
2429
+ BubbleMenu: sr,
2403
2430
  DtButton: m,
2404
2431
  DtStack: g
2405
2432
  },
@@ -2462,6 +2489,10 @@ var Vi = {
2462
2489
  type: [Boolean, Object],
2463
2490
  default: !1
2464
2491
  },
2492
+ linkPhoneNumbers: {
2493
+ type: Array,
2494
+ default: null
2495
+ },
2465
2496
  mentionSuggestion: {
2466
2497
  type: Object,
2467
2498
  default: null
@@ -2583,7 +2614,8 @@ var Vi = {
2583
2614
  "mention-click",
2584
2615
  "mention-hover",
2585
2616
  "mention-leave",
2586
- "channel-click"
2617
+ "channel-click",
2618
+ "phone-click"
2587
2619
  ],
2588
2620
  data() {
2589
2621
  return {
@@ -2604,15 +2636,15 @@ var Vi = {
2604
2636
  },
2605
2637
  extensions() {
2606
2638
  let e = [
2607
- Ve,
2608
- tt,
2609
- We,
2610
- Ge
2639
+ Ue,
2640
+ rt,
2641
+ Ke,
2642
+ qe
2611
2643
  ];
2612
- e.push(this.useDivTags ? ci : Ke), this.allowBold && e.push(qe), this.allowBlockquote && e.push(Re), this.allowBulletList && (e.push(Je), e.push(Ye.extend({ renderText({ node: e }) {
2644
+ e.push(this.useDivTags ? ui : Je), this.allowBold && e.push(Ye), this.allowBlockquote && e.push(Be), this.allowBulletList && (e.push(Xe), e.push(Ze.extend({ renderText({ node: e }) {
2613
2645
  return e.textContent;
2614
- } })), e.push(Xe)), this.allowItalic && e.push(Ze), this.allowStrike && e.push($e), this.allowUnderline && e.push(et), this.placeholder && e.push(Ue.configure({ placeholder: this.placeholder }));
2615
- let t = this, n = xe.create({ addKeyboardShortcuts() {
2646
+ } })), e.push(Qe)), this.allowItalic && e.push($e), this.allowStrike && e.push(tt), this.allowUnderline && e.push(nt), this.placeholder && e.push(Ge.configure({ placeholder: this.placeholder }));
2647
+ let t = this, n = Se.create({ addKeyboardShortcuts() {
2616
2648
  return {
2617
2649
  "Shift-Enter": ({ editor: e }) => t.allowLineBreaks ? !1 : (e.commands.first(({ commands: e }) => [
2618
2650
  () => e.newlineInCode(),
@@ -2624,7 +2656,7 @@ var Vi = {
2624
2656
  Enter: () => t.allowLineBreaks ? !1 : (t.$emit("enter"), !0)
2625
2657
  };
2626
2658
  } });
2627
- if (e.push(n), this.link && e.push(Qe.extend({
2659
+ if (e.push(n), this.link && e.push(et.extend({
2628
2660
  inclusive: !1,
2629
2661
  addKeyboardShortcuts() {
2630
2662
  return { "Mod-k": () => (t.$emit("edit-link"), !0) };
@@ -2632,35 +2664,35 @@ var Vi = {
2632
2664
  }).configure({
2633
2665
  HTMLAttributes: { class: "d-link d-wb-break-all" },
2634
2666
  openOnClick: !1,
2635
- autolink: !0,
2636
- protocols: E
2637
- })), this.customLink && e.push(this.getExtension(ai, this.customLink)), this.mentionSuggestion) {
2667
+ autolink: !this.customLink,
2668
+ protocols: ne
2669
+ })), this.customLink && e.push(this.getExtension(oi, this.customLink)), this.linkPhoneNumbers !== null && e.push(si), this.mentionSuggestion) {
2638
2670
  let t = {
2639
2671
  ...this.mentionSuggestion,
2640
- ...Mi
2672
+ ...Pi
2641
2673
  };
2642
- e.push(fi.configure({ suggestion: t }));
2674
+ e.push(mi.configure({ suggestion: t }));
2643
2675
  }
2644
2676
  if (this.channelSuggestion) {
2645
2677
  let t = {
2646
2678
  ...this.channelSuggestion,
2647
- ...Fi
2679
+ ...Li
2648
2680
  };
2649
- e.push(gi.configure({ suggestion: t }));
2681
+ e.push(vi.configure({ suggestion: t }));
2650
2682
  }
2651
2683
  if (this.slashCommandSuggestion) {
2652
2684
  let t = {
2653
2685
  ...this.slashCommandSuggestion,
2654
- ...Vi
2686
+ ...Ui
2655
2687
  };
2656
- e.push(xi.configure({
2688
+ e.push(Ci.configure({
2657
2689
  suggestion: t,
2658
2690
  onSelectedCommand: (e) => {
2659
2691
  this.$emit("selected-command", e);
2660
2692
  }
2661
2693
  }));
2662
2694
  }
2663
- return this.allowVariable && e.push(Ei.configure({ variableItems: this.variableItems })), e.push(Jr), this.allowTextAlign && e.push(nt.configure({ types: ["paragraph"] })), this.allowCode && e.push(Be), this.allowCodeblock && e.push(ze.extend({
2695
+ return this.allowVariable && e.push(Oi.configure({ variableItems: this.variableItems })), e.push(Yr), this.allowTextAlign && e.push(it.configure({ types: ["paragraph"] })), this.allowCode && e.push(He), this.allowCodeblock && e.push(Ve.extend({
2664
2696
  renderText({ node: e, pos: t, range: n }) {
2665
2697
  let r = n?.from ?? 0, i = n?.to ?? t + e.nodeSize;
2666
2698
  if (r <= t && i >= t + e.nodeSize) return `\`\`\`\n${e.textContent}\n\`\`\``;
@@ -2694,16 +2726,16 @@ var Vi = {
2694
2726
  }
2695
2727
  };
2696
2728
  }
2697
- }).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(oi.configure({ resize: {
2729
+ }).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(ci.configure({ resize: {
2698
2730
  enabled: this.allowImageResize,
2699
2731
  alwaysPreserveAspectRatio: !0
2700
- } })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(ct.configure({
2732
+ } })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(ut.configure({
2701
2733
  color: this.allowFontColor,
2702
2734
  backgroundColor: this.allowBackgroundColor,
2703
2735
  fontFamily: this.allowFontFamily,
2704
2736
  fontSize: this.allowFontSize,
2705
2737
  lineHeight: this.allowLineHeight
2706
- })), e.push(gr)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push(dr.configure({ resizable: !0 }), fr, hr, mr, He), e;
2738
+ })), e.push(_r)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push(fr.configure({ resizable: !0 }), pr, gr, hr, We), e;
2707
2739
  },
2708
2740
  inputAttrs() {
2709
2741
  let e = {
@@ -2729,6 +2761,9 @@ var Vi = {
2729
2761
  },
2730
2762
  modelValue(e) {
2731
2763
  this.processValue(e);
2764
+ },
2765
+ linkPhoneNumbers() {
2766
+ this._applyPhoneMarks();
2732
2767
  }
2733
2768
  },
2734
2769
  created() {
@@ -2791,7 +2826,7 @@ var Vi = {
2791
2826
  let e = this.editor.getAttributes("link").href;
2792
2827
  window.open(e, "_blank");
2793
2828
  },
2794
- setLink(e, t, n, r = E, i) {
2829
+ setLink(e, t, n, r = ne, i) {
2795
2830
  if (!e) {
2796
2831
  this.removeLink();
2797
2832
  return;
@@ -2809,17 +2844,29 @@ var Vi = {
2809
2844
  processValue(e, t = !0) {
2810
2845
  if (!this.editor) return;
2811
2846
  let n = this.getOutput();
2812
- if (!(t && mt(e, n))) {
2847
+ if (!(t && gt(e, n))) {
2813
2848
  if (typeof e == "string" && this.outputFormat === "text") {
2814
- let t = RegExp(`(${ye})`, "g");
2849
+ let t = RegExp(`(${be})`, "g");
2815
2850
  e = e?.replace(t, "<emoji-component code=\"$1\"></emoji-component>");
2816
2851
  }
2817
2852
  this.editor.commands.setContent(e, {
2818
2853
  emitUpdate: !1,
2819
2854
  parseOptions: { preserveWhitespace: this.preserveWhitespace }
2820
- });
2855
+ }), this._applyPhoneMarks();
2821
2856
  }
2822
2857
  },
2858
+ _applyPhoneMarks() {
2859
+ if (!this.editor) return;
2860
+ let e = this.editor.schema.marks.LinkPhoneNumbers;
2861
+ if (!e) return;
2862
+ let { tr: t, doc: n } = this.editor.state;
2863
+ t.removeMark(0, n.content.size, e), this.linkPhoneNumbers?.length && n.descendants((n, r) => {
2864
+ if (!(!n.isText || !n.text)) for (let i of this.linkPhoneNumbers) {
2865
+ let a = 0, o;
2866
+ for (; (o = n.text.indexOf(i, a)) !== -1;) t.addMark(r + o, r + o + i.length, e.create()), a = o + i.length;
2867
+ }
2868
+ }), this.editor.view.dispatch(t);
2869
+ },
2823
2870
  destroyEditor() {
2824
2871
  this.editor.destroy();
2825
2872
  },
@@ -2882,7 +2929,7 @@ var Vi = {
2882
2929
  this.$emit("html-input", n);
2883
2930
  let r = this.editor.getText({ blockSeparator: "\n" });
2884
2931
  this.$emit("text-input", r);
2885
- let i = ne(t, this.extensions);
2932
+ let i = re(t, this.extensions);
2886
2933
  this.$emit("markdown-input", i);
2887
2934
  },
2888
2935
  addEditorListeners() {
@@ -2904,13 +2951,15 @@ var Vi = {
2904
2951
  this.$emit("mention-leave", e);
2905
2952
  }), this.editor.on("channel-click", (e) => {
2906
2953
  this.$emit("channel-click", e);
2954
+ }), this.editor.on("phone-click", (e) => {
2955
+ this.$emit("phone-click", e);
2907
2956
  });
2908
2957
  },
2909
2958
  getOutput() {
2910
2959
  switch (this.outputFormat) {
2911
2960
  case "json": return this.editor.getJSON();
2912
2961
  case "html": return this.editor.getHTML();
2913
- case "markdown": return ne(this.editor.getJSON(), this.extensions);
2962
+ case "markdown": return re(this.editor.getJSON(), this.extensions);
2914
2963
  default: return this.editor.getText({ blockSeparator: "\n" });
2915
2964
  }
2916
2965
  },
@@ -2928,10 +2977,10 @@ var Vi = {
2928
2977
  this.editor.commands.focus();
2929
2978
  }
2930
2979
  }
2931
- }, Ui = { class: "d-popover__dialog" };
2932
- function Wi(e, t, n, r, i, a) {
2933
- let o = P("dt-button"), s = P("dt-stack"), c = P("bubble-menu"), l = P("editor-content");
2934
- return N(), A("div", null, [i.editor && n.link ? (N(), O(c, {
2980
+ }, Gi = { class: "d-popover__dialog" };
2981
+ function Ki(e, t, n, r, i, a) {
2982
+ let o = N("dt-button"), s = N("dt-stack"), c = N("bubble-menu"), l = N("editor-content");
2983
+ return M(), k("div", null, [i.editor && n.link ? (M(), D(c, {
2935
2984
  key: 0,
2936
2985
  editor: i.editor,
2937
2986
  "should-show": a.bubbleMenuShouldShow,
@@ -2939,34 +2988,34 @@ function Wi(e, t, n, r, i, a) {
2939
2988
  "append-to": i.appendTo,
2940
2989
  style: { visibility: "visible" }
2941
2990
  }, {
2942
- default: I(() => [j("div", Ui, [M(s, {
2991
+ default: F(() => [A("div", Gi, [j(s, {
2943
2992
  direction: "row",
2944
2993
  class: "d-rich-text-editor-bubble-menu__button-stack",
2945
2994
  gap: "0"
2946
2995
  }, {
2947
- default: I(() => [
2948
- M(o, {
2996
+ default: F(() => [
2997
+ j(o, {
2949
2998
  kind: "muted",
2950
2999
  importance: "clear",
2951
3000
  onClick: a.editLink
2952
3001
  }, {
2953
- default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)]),
3002
+ default: F(() => [ie(P(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)]),
2954
3003
  _: 1
2955
3004
  }, 8, ["onClick"]),
2956
- M(o, {
3005
+ j(o, {
2957
3006
  kind: "muted",
2958
3007
  importance: "clear",
2959
3008
  onClick: a.openLink
2960
3009
  }, {
2961
- default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)]),
3010
+ default: F(() => [ie(P(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)]),
2962
3011
  _: 1
2963
3012
  }, 8, ["onClick"]),
2964
- M(o, {
3013
+ j(o, {
2965
3014
  kind: "danger",
2966
3015
  importance: "clear",
2967
3016
  onClick: a.removeLink
2968
3017
  }, {
2969
- default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)]),
3018
+ default: F(() => [ie(P(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)]),
2970
3019
  _: 1
2971
3020
  }, 8, ["onClick"])
2972
3021
  ]),
@@ -2978,15 +3027,15 @@ function Wi(e, t, n, r, i, a) {
2978
3027
  "should-show",
2979
3028
  "options",
2980
3029
  "append-to"
2981
- ])) : k("", !0), M(l, se({
3030
+ ])) : O("", !0), j(l, ce({
2982
3031
  ref: "editor",
2983
3032
  editor: i.editor,
2984
3033
  class: "d-rich-text-editor",
2985
3034
  "data-qa": "dt-rich-text-editor"
2986
3035
  }, a.attrs), null, 16, ["editor"])]);
2987
3036
  }
2988
- var Gi = /* @__PURE__ */ i(Hi, [["render", Wi]]);
3037
+ var qi = /* @__PURE__ */ i(Wi, [["render", Ki]]);
2989
3038
  //#endregion
2990
- export { Gi as t };
3039
+ export { qi as t };
2991
3040
 
2992
- //# sourceMappingURL=rich_text_editor-DYu2R0kw.js.map
3041
+ //# sourceMappingURL=rich_text_editor-CNFb6tIx.js.map