@dialpad/dialtone 9.177.1 → 9.178.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 (140) hide show
  1. package/dist/css/dialtone-default-theme.css +75 -0
  2. package/dist/css/dialtone-default-theme.min.css +1 -1
  3. package/dist/css/dialtone.css +75 -0
  4. package/dist/css/dialtone.min.css +1 -1
  5. package/dist/css/tokens-docs.json +1 -1
  6. package/dist/tokens/doc.json +116900 -116900
  7. package/dist/vue3/{attachment_carousel-DMKCJe7S.cjs → attachment_carousel-BHxR7A76.cjs} +1 -1
  8. package/dist/vue3/{attachment_carousel-DMKCJe7S.cjs.map → attachment_carousel-BHxR7A76.cjs.map} +1 -1
  9. package/dist/vue3/{attachment_carousel-gV6IHYgP.js → attachment_carousel-CouFqFMw.js} +1 -1
  10. package/dist/vue3/{attachment_carousel-gV6IHYgP.js.map → attachment_carousel-CouFqFMw.js.map} +1 -1
  11. package/dist/vue3/component-documentation.json +1 -1
  12. package/dist/vue3/components/combobox_with_popover/combobox_with_popover.vue.d.ts +2 -0
  13. package/dist/vue3/components/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  14. package/dist/vue3/components/resizable/composables/computeLayout.d.ts +35 -0
  15. package/dist/vue3/components/resizable/composables/computeLayout.d.ts.map +1 -0
  16. package/dist/vue3/components/resizable/composables/constraintResolver.d.ts +22 -0
  17. package/dist/vue3/components/resizable/composables/constraintResolver.d.ts.map +1 -0
  18. package/dist/vue3/components/resizable/composables/index.d.ts +16 -0
  19. package/dist/vue3/components/resizable/composables/index.d.ts.map +1 -0
  20. package/dist/vue3/components/resizable/composables/useResizableAnnouncements.d.ts +6 -0
  21. package/dist/vue3/components/resizable/composables/useResizableAnnouncements.d.ts.map +1 -0
  22. package/dist/vue3/components/resizable/composables/useResizableCalculations.d.ts +14 -0
  23. package/dist/vue3/components/resizable/composables/useResizableCalculations.d.ts.map +1 -0
  24. package/dist/vue3/components/resizable/composables/useResizableDrag.d.ts +42 -0
  25. package/dist/vue3/components/resizable/composables/useResizableDrag.d.ts.map +1 -0
  26. package/dist/vue3/components/resizable/composables/useResizableGroup.d.ts +25 -0
  27. package/dist/vue3/components/resizable/composables/useResizableGroup.d.ts.map +1 -0
  28. package/dist/vue3/components/resizable/composables/useResizableKeyboard.d.ts +41 -0
  29. package/dist/vue3/components/resizable/composables/useResizableKeyboard.d.ts.map +1 -0
  30. package/dist/vue3/components/resizable/composables/useResizableOffset.d.ts +15 -0
  31. package/dist/vue3/components/resizable/composables/useResizableOffset.d.ts.map +1 -0
  32. package/dist/vue3/components/resizable/composables/useResizablePanelControls.d.ts +46 -0
  33. package/dist/vue3/components/resizable/composables/useResizablePanelControls.d.ts.map +1 -0
  34. package/dist/vue3/components/resizable/composables/useResizablePanelState.d.ts +9 -0
  35. package/dist/vue3/components/resizable/composables/useResizablePanelState.d.ts.map +1 -0
  36. package/dist/vue3/components/resizable/composables/useResizableStorage.d.ts +12 -0
  37. package/dist/vue3/components/resizable/composables/useResizableStorage.d.ts.map +1 -0
  38. package/dist/vue3/components/resizable/index.d.ts +6 -0
  39. package/dist/vue3/components/resizable/index.d.ts.map +1 -0
  40. package/dist/vue3/components/resizable/resizable.vue.d.ts +69 -0
  41. package/dist/vue3/components/resizable/resizable.vue.d.ts.map +1 -0
  42. package/dist/vue3/components/resizable/resizable_constants.d.ts +103 -0
  43. package/dist/vue3/components/resizable/resizable_constants.d.ts.map +1 -0
  44. package/dist/vue3/components/resizable/resizable_handle.vue.d.ts +22 -0
  45. package/dist/vue3/components/resizable/resizable_handle.vue.d.ts.map +1 -0
  46. package/dist/vue3/components/resizable/resizable_panel.vue.d.ts +44 -0
  47. package/dist/vue3/components/resizable/resizable_panel.vue.d.ts.map +1 -0
  48. package/dist/vue3/components/resizable/resizable_utils.d.ts +15 -0
  49. package/dist/vue3/components/resizable/resizable_utils.d.ts.map +1 -0
  50. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.d.ts +2 -0
  51. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  52. package/dist/vue3/components/scroller/scroller.vue.d.ts +6 -8
  53. package/dist/vue3/components/scroller/scroller.vue.d.ts.map +1 -1
  54. package/dist/vue3/components/split_button/split_button.vue.d.ts +4 -4
  55. package/dist/vue3/dialtone-vue.cjs +1 -1
  56. package/dist/vue3/dialtone-vue.js +56 -51
  57. package/dist/vue3/index.d.ts +1 -0
  58. package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  59. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js +1 -1
  60. package/dist/vue3/lib/attachment-carousel/index.cjs +1 -1
  61. package/dist/vue3/lib/attachment-carousel/index.js +1 -1
  62. package/dist/vue3/lib/editor/editor.cjs +1 -1
  63. package/dist/vue3/lib/editor/editor.js +1 -1
  64. package/dist/vue3/lib/message-input/index.cjs +1 -1
  65. package/dist/vue3/lib/message-input/index.js +1 -1
  66. package/dist/vue3/lib/message-input/message-input.cjs +1 -1
  67. package/dist/vue3/lib/message-input/message-input.js +1 -1
  68. package/dist/vue3/lib/resizable/index.cjs +1 -0
  69. package/dist/vue3/lib/resizable/index.js +5 -0
  70. package/dist/vue3/lib/resizable/resizable-handle.cjs +1 -0
  71. package/dist/vue3/lib/resizable/resizable-handle.js +2 -0
  72. package/dist/vue3/lib/resizable/resizable-panel.cjs +2 -0
  73. package/dist/vue3/lib/resizable/resizable-panel.cjs.map +1 -0
  74. package/dist/vue3/lib/resizable/resizable-panel.js +132 -0
  75. package/dist/vue3/lib/resizable/resizable-panel.js.map +1 -0
  76. package/dist/vue3/lib/resizable/resizable.cjs +1 -0
  77. package/dist/vue3/lib/resizable/resizable.js +2 -0
  78. package/dist/vue3/lib/rich-text-editor/index.cjs +1 -1
  79. package/dist/vue3/lib/rich-text-editor/index.js +1 -1
  80. package/dist/vue3/lib/rich-text-editor/markdownRenderer.cjs +1 -7
  81. package/dist/vue3/lib/rich-text-editor/markdownRenderer.js +2 -62
  82. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +1 -1
  83. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +1 -1
  84. package/dist/vue3/lib/scroller/index.cjs +1 -1
  85. package/dist/vue3/lib/scroller/index.js +1 -1
  86. package/dist/vue3/lib/scroller/scroller.cjs +1 -1
  87. package/dist/vue3/lib/scroller/scroller.js +1 -1
  88. package/dist/vue3/lib/toast/index.cjs +1 -1
  89. package/dist/vue3/lib/toast/index.js +1 -1
  90. package/dist/vue3/lib/toast/toast.cjs +1 -1
  91. package/dist/vue3/lib/toast/toast.js +1 -1
  92. package/dist/vue3/markdownRenderer-DCgGQseq.cjs +31 -0
  93. package/dist/vue3/markdownRenderer-DCgGQseq.cjs.map +1 -0
  94. package/dist/vue3/markdownRenderer-D_P94RyM.js +322 -0
  95. package/dist/vue3/markdownRenderer-D_P94RyM.js.map +1 -0
  96. package/dist/vue3/{message_input-VmltTreF.cjs → message_input-AWgvtwMV.cjs} +2 -2
  97. package/dist/vue3/{message_input-VmltTreF.cjs.map → message_input-AWgvtwMV.cjs.map} +1 -1
  98. package/dist/vue3/{message_input-tVB6JYJm.js → message_input-CHlTsBGK.js} +2 -2
  99. package/dist/vue3/{message_input-tVB6JYJm.js.map → message_input-CHlTsBGK.js.map} +1 -1
  100. package/dist/vue3/node_modules/@tiptap/vue-3.cjs.map +1 -1
  101. package/dist/vue3/node_modules/@tiptap/vue-3.js +1 -1
  102. package/dist/vue3/node_modules/@tiptap/vue-3.js.map +1 -1
  103. package/dist/vue3/recipes/conversation_view/editor/editor.vue.d.ts +2 -0
  104. package/dist/vue3/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  105. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.d.ts +2 -0
  106. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  107. package/dist/vue3/resizable-D4-peBOl.js +960 -0
  108. package/dist/vue3/resizable-D4-peBOl.js.map +1 -0
  109. package/dist/vue3/resizable-aOVGO_Os.cjs +2 -0
  110. package/dist/vue3/resizable-aOVGO_Os.cjs.map +1 -0
  111. package/dist/vue3/resizable_handle-BlKBiWnx.js +307 -0
  112. package/dist/vue3/resizable_handle-BlKBiWnx.js.map +1 -0
  113. package/dist/vue3/resizable_handle-RIKS8frB.cjs +2 -0
  114. package/dist/vue3/resizable_handle-RIKS8frB.cjs.map +1 -0
  115. package/dist/vue3/resizable_utils-BComtrMV.js +131 -0
  116. package/dist/vue3/resizable_utils-BComtrMV.js.map +1 -0
  117. package/dist/vue3/resizable_utils-DhuzXRdP.cjs +2 -0
  118. package/dist/vue3/resizable_utils-DhuzXRdP.cjs.map +1 -0
  119. package/dist/vue3/{rich_text_editor-CtCGNkSD.js → rich_text_editor-Ba67C4Uk.js} +421 -454
  120. package/dist/vue3/rich_text_editor-Ba67C4Uk.js.map +1 -0
  121. package/dist/vue3/rich_text_editor-DMP5eTlf.cjs +10 -0
  122. package/dist/vue3/rich_text_editor-DMP5eTlf.cjs.map +1 -0
  123. package/dist/vue3/{scroller-Ckquh-PU.js → scroller-BGVDh3sq.js} +1 -1
  124. package/dist/vue3/{scroller-Ckquh-PU.js.map → scroller-BGVDh3sq.js.map} +1 -1
  125. package/dist/vue3/{scroller-06ayn-64.cjs → scroller-CjAsgjl9.cjs} +1 -1
  126. package/dist/vue3/{scroller-06ayn-64.cjs.map → scroller-CjAsgjl9.cjs.map} +1 -1
  127. package/dist/vue3/{toast-B1zeUPtg.js → toast-DvPN-bCi.js} +1 -1
  128. package/dist/vue3/{toast-B1zeUPtg.js.map → toast-DvPN-bCi.js.map} +1 -1
  129. package/dist/vue3/{toast-0QfP90_3.cjs → toast-d8_zmgkL.cjs} +1 -1
  130. package/dist/vue3/{toast-0QfP90_3.cjs.map → toast-d8_zmgkL.cjs.map} +1 -1
  131. package/dist/vue3/useResizableCalculations-BDITle3Q.cjs +2 -0
  132. package/dist/vue3/useResizableCalculations-BDITle3Q.cjs.map +1 -0
  133. package/dist/vue3/useResizableCalculations-DAajatT4.js +80 -0
  134. package/dist/vue3/useResizableCalculations-DAajatT4.js.map +1 -0
  135. package/package.json +1 -1
  136. package/dist/vue3/lib/rich-text-editor/markdownRenderer.cjs.map +0 -1
  137. package/dist/vue3/lib/rich-text-editor/markdownRenderer.js.map +0 -1
  138. package/dist/vue3/rich_text_editor-CEwKDuzw.cjs +0 -10
  139. package/dist/vue3/rich_text_editor-CEwKDuzw.cjs.map +0 -1
  140. package/dist/vue3/rich_text_editor-CtCGNkSD.js.map +0 -1
@@ -12,9 +12,9 @@ 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 ne } from "./lib/rich-text-editor/rich-text-editor-constants.js";
16
- import { renderEditorToMarkdown as re } from "./lib/rich-text-editor/markdownRenderer.js";
17
- import { Fragment as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as j, 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";
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
18
  import { emojiPattern as ye } from "regex-combined-emojis";
19
19
  import { DtIconLock as be } from "@dialpad/dialtone-icons/vue3";
20
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";
@@ -43,7 +43,7 @@ import dt from "@tiptap/extension-mention";
43
43
  import ft from "@dialpad/dialtone-icons/vue3/hash";
44
44
  import pt from "@dialpad/dialtone-icons/vue3/lock";
45
45
  import mt from "deep-equal";
46
- //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
46
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
47
47
  var ht = [
48
48
  "top",
49
49
  "right",
@@ -57,11 +57,8 @@ var ht = [
57
57
  right: "left",
58
58
  bottom: "top",
59
59
  top: "bottom"
60
- }, bt = {
61
- start: "end",
62
- end: "start"
63
60
  };
64
- function xt(e, t, n) {
61
+ function bt(e, t, n) {
65
62
  return B(e, z(t, n));
66
63
  }
67
64
  function H(e, t) {
@@ -73,53 +70,54 @@ function U(e) {
73
70
  function W(e) {
74
71
  return e.split("-")[1];
75
72
  }
76
- function St(e) {
73
+ function xt(e) {
77
74
  return e === "x" ? "y" : "x";
78
75
  }
79
- function Ct(e) {
76
+ function St(e) {
80
77
  return e === "y" ? "height" : "width";
81
78
  }
82
- var wt = /* @__PURE__ */ new Set(["top", "bottom"]);
83
79
  function G(e) {
84
- return wt.has(U(e)) ? "y" : "x";
80
+ let t = e[0];
81
+ return t === "t" || t === "b" ? "y" : "x";
85
82
  }
86
- function Tt(e) {
87
- return St(G(e));
83
+ function Ct(e) {
84
+ return xt(G(e));
88
85
  }
89
- function Et(e, t, n) {
86
+ function wt(e, t, n) {
90
87
  n === void 0 && (n = !1);
91
- let r = W(e), i = Tt(e), a = Ct(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
92
- return t.reference[a] > t.floating[a] && (o = Ft(o)), [o, Ft(o)];
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)];
93
90
  }
94
- function Dt(e) {
95
- let t = Ft(e);
91
+ function Tt(e) {
92
+ let t = Nt(e);
96
93
  return [
97
- Ot(e),
94
+ Et(e),
98
95
  t,
99
- Ot(t)
96
+ Et(t)
100
97
  ];
101
98
  }
102
- function Ot(e) {
103
- return e.replace(/start|end/g, (e) => bt[e]);
99
+ function Et(e) {
100
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
104
101
  }
105
- var kt = ["left", "right"], At = ["right", "left"], jt = ["top", "bottom"], Mt = ["bottom", "top"];
106
- function Nt(e, t, n) {
102
+ var Dt = ["left", "right"], Ot = ["right", "left"], kt = ["top", "bottom"], At = ["bottom", "top"];
103
+ function jt(e, t, n) {
107
104
  switch (e) {
108
105
  case "top":
109
- case "bottom": return n ? t ? At : kt : t ? kt : At;
106
+ case "bottom": return n ? t ? Ot : Dt : t ? Dt : Ot;
110
107
  case "left":
111
- case "right": return t ? jt : Mt;
108
+ case "right": return t ? kt : At;
112
109
  default: return [];
113
110
  }
114
111
  }
115
- function Pt(e, t, n, r) {
116
- let i = W(e), a = Nt(U(e), n === "start", r);
117
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ot)))), a;
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;
118
115
  }
119
- function Ft(e) {
120
- return e.replace(/left|right|bottom|top/g, (e) => yt[e]);
116
+ function Nt(e) {
117
+ let t = U(e);
118
+ return yt[t] + e.slice(t.length);
121
119
  }
122
- function It(e) {
120
+ function Pt(e) {
123
121
  return {
124
122
  top: 0,
125
123
  right: 0,
@@ -128,15 +126,15 @@ function It(e) {
128
126
  ...e
129
127
  };
130
128
  }
131
- function Lt(e) {
129
+ function Ft(e) {
132
130
  return typeof e == "number" ? {
133
131
  top: e,
134
132
  right: e,
135
133
  bottom: e,
136
134
  left: e
137
- } : It(e);
135
+ } : Pt(e);
138
136
  }
139
- function K(e) {
137
+ function It(e) {
140
138
  let { x: t, y: n, width: r, height: i } = e;
141
139
  return {
142
140
  width: r,
@@ -150,9 +148,9 @@ function K(e) {
150
148
  };
151
149
  }
152
150
  //#endregion
153
- //#region ../../node_modules/.pnpm/@floating-ui+core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
154
- function Rt(e, t, n) {
155
- let { reference: r, floating: i } = e, a = G(t), o = Tt(t), s = Ct(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;
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;
156
154
  switch (c) {
157
155
  case "top":
158
156
  p = {
@@ -193,9 +191,9 @@ function Rt(e, t, n) {
193
191
  }
194
192
  return p;
195
193
  }
196
- async function zt(e, t) {
194
+ async function Rt(e, t) {
197
195
  t === void 0 && (t = {});
198
- 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 = Lt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = K(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 } = H(t, e), p = Ft(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = It(await i.getClippingRect({
199
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)),
200
198
  boundary: c,
201
199
  rootBoundary: l,
@@ -208,7 +206,7 @@ async function zt(e, t) {
208
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(_)) || {
209
207
  x: 1,
210
208
  y: 1
211
- }, y = K(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
209
+ }, y = It(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
212
210
  elements: o,
213
211
  rect: g,
214
212
  offsetParent: _,
@@ -221,48 +219,47 @@ async function zt(e, t) {
221
219
  right: (y.right - h.right + p.right) / v.x
222
220
  };
223
221
  }
224
- var Bt = async (e, t, n) => {
225
- let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
222
+ var zt = 50, Bt = async (e, t, n) => {
223
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
224
+ ...o,
225
+ detectOverflow: Rt
226
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
226
227
  reference: e,
227
228
  floating: t,
228
229
  strategy: i
229
- }), { x: u, y: d } = Rt(l, r, c), f = r, p = {}, m = 0;
230
- for (let n = 0; n < s.length; n++) {
231
- let { name: a, fn: h } = s[n], { x: g, y: _, data: v, reset: y } = await h({
230
+ }), { x: u, y: d } = Lt(l, r, c), f = r, p = 0, m = {};
231
+ for (let n = 0; n < a.length; n++) {
232
+ let h = a[n];
233
+ if (!h) continue;
234
+ let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
232
235
  x: u,
233
236
  y: d,
234
237
  initialPlacement: r,
235
238
  placement: f,
236
239
  strategy: i,
237
- middlewareData: p,
240
+ middlewareData: m,
238
241
  rects: l,
239
- platform: {
240
- ...o,
241
- detectOverflow: o.detectOverflow ?? zt
242
- },
242
+ platform: s,
243
243
  elements: {
244
244
  reference: e,
245
245
  floating: t
246
246
  }
247
247
  });
248
- u = g ?? u, d = _ ?? d, p = {
249
- ...p,
250
- [a]: {
251
- ...p[a],
252
- ...v
253
- }
254
- }, y && m <= 50 && (m++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (l = y.rects === !0 ? await o.getElementRects({
248
+ u = v ?? u, d = y ?? d, m[g] = {
249
+ ...m[g],
250
+ ...b
251
+ }, x && p < zt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
255
252
  reference: e,
256
253
  floating: t,
257
254
  strategy: i
258
- }) : y.rects), {x: u, y: d} = Rt(l, f, c)), n = -1);
255
+ }) : x.rects), {x: u, y: d} = Lt(l, f, c)), n = -1);
259
256
  }
260
257
  return {
261
258
  x: u,
262
259
  y: d,
263
260
  placement: f,
264
261
  strategy: i,
265
- middlewareData: p
262
+ middlewareData: m
266
263
  };
267
264
  }, Vt = (e) => ({
268
265
  name: "arrow",
@@ -270,25 +267,25 @@ var Bt = async (e, t, n) => {
270
267
  async fn(t) {
271
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) || {};
272
269
  if (l == null) return {};
273
- let d = Lt(u), f = {
270
+ let d = Ft(u), f = {
274
271
  x: n,
275
272
  y: r
276
- }, p = Tt(i), m = Ct(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 = 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;
277
274
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
278
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = z(d[_], T), te = z(d[v], T), ne = ee, re = C - h[m] - te, E = C / 2 - h[m] / 2 + w, D = xt(ne, E, re), O = !c.arrow && W(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;
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;
279
276
  return {
280
- [p]: f[p] + k,
277
+ [p]: f[p] + A,
281
278
  data: {
282
- [p]: D,
283
- centerOffset: E - D - k,
284
- ...O && { alignmentOffset: k }
279
+ [p]: O,
280
+ centerOffset: D - O - A,
281
+ ...k && { alignmentOffset: A }
285
282
  },
286
- reset: O
283
+ reset: k
287
284
  };
288
285
  }
289
286
  });
290
287
  function Ht(e, t, n) {
291
- 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 ? Ot(n) !== n : !1) : !0);
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);
292
289
  }
293
290
  var Ut = function(e) {
294
291
  return e === void 0 && (e = {}), {
@@ -297,7 +294,7 @@ var Ut = function(e) {
297
294
  async fn(t) {
298
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];
299
296
  if (h == null) return {};
300
- let g = Et(h, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating)));
297
+ let g = wt(h, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating)));
301
298
  if (i !== h) return { reset: { placement: f[0] } };
302
299
  let _ = [
303
300
  p[U(h)],
@@ -339,11 +336,11 @@ var Ut = function(e) {
339
336
  var n;
340
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);
341
338
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
342
- 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 ? [Ft(o)] : Dt(o)), x = p !== "none";
343
- !d && x && b.push(...Pt(o, m, p, y));
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));
344
341
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
345
342
  if (l && w.push(C[g]), u) {
346
- let e = Et(r, a, y);
343
+ let e = wt(r, a, y);
347
344
  w.push(C[e[0]], C[e[1]]);
348
345
  }
349
346
  if (T = [...T, {
@@ -439,14 +436,14 @@ function Yt(e) {
439
436
  let i = t[e];
440
437
  !r || i.y - r.y > r.height / 2 ? n.push([i]) : n[n.length - 1].push(i), r = i;
441
438
  }
442
- return n.map((e) => K(Jt(e)));
439
+ return n.map((e) => It(Jt(e)));
443
440
  }
444
441
  var Xt = function(e) {
445
442
  return e === void 0 && (e = {}), {
446
443
  name: "inline",
447
444
  options: e,
448
445
  async fn(t) {
449
- 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 = K(Jt(u)), p = Lt(s);
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);
450
447
  function m() {
451
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;
452
449
  if (d.length >= 2) {
@@ -535,14 +532,14 @@ var $t = function(e) {
535
532
  } }, ...l } = H(e, t), u = {
536
533
  x: n,
537
534
  y: r
538
- }, d = await a.detectOverflow(t, l), f = G(U(i)), p = St(f), m = u[p], h = u[f];
535
+ }, d = await a.detectOverflow(t, l), f = G(U(i)), p = xt(f), m = u[p], h = u[f];
539
536
  if (o) {
540
537
  let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
541
- m = xt(n, m, r);
538
+ m = bt(n, m, r);
542
539
  }
543
540
  if (s) {
544
541
  let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
545
- h = xt(n, h, r);
542
+ h = bt(n, h, r);
546
543
  }
547
544
  let g = c.fn({
548
545
  ...t,
@@ -586,103 +583,74 @@ var $t = function(e) {
586
583
  };
587
584
  };
588
585
  //#endregion
589
- //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
586
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
590
587
  function nn() {
591
588
  return typeof window < "u";
592
589
  }
593
590
  function rn(e) {
594
591
  return an(e) ? (e.nodeName || "").toLowerCase() : "#document";
595
592
  }
596
- function q(e) {
593
+ function K(e) {
597
594
  var t;
598
595
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
599
596
  }
600
- function J(e) {
597
+ function q(e) {
601
598
  return ((an(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
602
599
  }
603
600
  function an(e) {
604
- return nn() ? e instanceof Node || e instanceof q(e).Node : !1;
601
+ return nn() ? e instanceof Node || e instanceof K(e).Node : !1;
605
602
  }
606
- function Y(e) {
607
- return nn() ? e instanceof Element || e instanceof q(e).Element : !1;
603
+ function J(e) {
604
+ return nn() ? e instanceof Element || e instanceof K(e).Element : !1;
608
605
  }
609
- function X(e) {
610
- return nn() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
606
+ function Y(e) {
607
+ return nn() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
611
608
  }
612
609
  function on(e) {
613
- return !nn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
610
+ return !nn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
614
611
  }
615
- var sn = /* @__PURE__ */ new Set(["inline", "contents"]);
616
- function cn(e) {
612
+ function sn(e) {
617
613
  let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
618
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !sn.has(i);
619
- }
620
- var ln = /* @__PURE__ */ new Set([
621
- "table",
622
- "td",
623
- "th"
624
- ]);
625
- function un(e) {
626
- return ln.has(rn(e));
627
- }
628
- var dn = [":popover-open", ":modal"];
629
- function fn(e) {
630
- return dn.some((t) => {
631
- try {
632
- return e.matches(t);
633
- } catch {
634
- return !1;
635
- }
636
- });
614
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
637
615
  }
638
- var pn = [
639
- "transform",
640
- "translate",
641
- "scale",
642
- "rotate",
643
- "perspective"
644
- ], mn = [
645
- "transform",
646
- "translate",
647
- "scale",
648
- "rotate",
649
- "perspective",
650
- "filter"
651
- ], hn = [
652
- "paint",
653
- "layout",
654
- "strict",
655
- "content"
656
- ];
657
- function gn(e) {
658
- let t = vn(), n = Y(e) ? Z(e) : e;
659
- return pn.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || mn.some((e) => (n.willChange || "").includes(e)) || hn.some((e) => (n.contain || "").includes(e));
616
+ function cn(e) {
617
+ return /^(table|td|th)$/.test(rn(e));
618
+ }
619
+ function ln(e) {
620
+ try {
621
+ if (e.matches(":popover-open")) return !0;
622
+ } catch {}
623
+ try {
624
+ return e.matches(":modal");
625
+ } catch {
626
+ return !1;
627
+ }
660
628
  }
661
- function _n(e) {
629
+ var un = /transform|translate|scale|rotate|perspective|filter/, dn = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", fn;
630
+ function pn(e) {
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 || "");
633
+ }
634
+ function mn(e) {
662
635
  let t = Q(e);
663
- for (; X(t) && !bn(t);) {
664
- if (gn(t)) return t;
665
- if (fn(t)) return null;
636
+ for (; Y(t) && !gn(t);) {
637
+ if (pn(t)) return t;
638
+ if (ln(t)) return null;
666
639
  t = Q(t);
667
640
  }
668
641
  return null;
669
642
  }
670
- function vn() {
671
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
643
+ function hn() {
644
+ return fn ?? (fn = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), fn;
672
645
  }
673
- var yn = /* @__PURE__ */ new Set([
674
- "html",
675
- "body",
676
- "#document"
677
- ]);
678
- function bn(e) {
679
- return yn.has(rn(e));
646
+ function gn(e) {
647
+ return /^(html|body|#document)$/.test(rn(e));
680
648
  }
681
649
  function Z(e) {
682
- return q(e).getComputedStyle(e);
650
+ return K(e).getComputedStyle(e);
683
651
  }
684
- function xn(e) {
685
- return Y(e) ? {
652
+ function _n(e) {
653
+ return J(e) ? {
686
654
  scrollLeft: e.scrollLeft,
687
655
  scrollTop: e.scrollTop
688
656
  } : {
@@ -692,100 +660,99 @@ function xn(e) {
692
660
  }
693
661
  function Q(e) {
694
662
  if (rn(e) === "html") return e;
695
- let t = e.assignedSlot || e.parentNode || on(e) && e.host || J(e);
663
+ let t = e.assignedSlot || e.parentNode || on(e) && e.host || q(e);
696
664
  return on(t) ? t.host : t;
697
665
  }
698
- function Sn(e) {
666
+ function vn(e) {
699
667
  let t = Q(e);
700
- return bn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : X(t) && cn(t) ? t : Sn(t);
668
+ return gn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && sn(t) ? t : vn(t);
701
669
  }
702
- function Cn(e, t, n) {
670
+ function yn(e, t, n) {
703
671
  t === void 0 && (t = []), n === void 0 && (n = !0);
704
- let r = Sn(e), i = r === e.ownerDocument?.body, a = q(r);
672
+ let r = vn(e), i = r === e.ownerDocument?.body, a = K(r);
705
673
  if (i) {
706
- let e = wn(a);
707
- return t.concat(a, a.visualViewport || [], cn(r) ? r : [], e && n ? Cn(e) : []);
708
- }
709
- return t.concat(r, Cn(r, [], n));
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));
710
677
  }
711
- function wn(e) {
678
+ function bn(e) {
712
679
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
713
680
  }
714
681
  //#endregion
715
- //#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
716
- function Tn(e) {
717
- let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = X(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = vt(n) !== a || vt(r) !== o;
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;
718
685
  return s && (n = a, r = o), {
719
686
  width: n,
720
687
  height: r,
721
688
  $: s
722
689
  };
723
690
  }
724
- function En(e) {
725
- return Y(e) ? e : e.contextElement;
691
+ function Sn(e) {
692
+ return J(e) ? e : e.contextElement;
726
693
  }
727
- function Dn(e) {
728
- let t = En(e);
729
- if (!X(t)) return V(1);
730
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Tn(t), o = (a ? vt(n.width) : n.width) / r, s = (a ? vt(n.height) : n.height) / i;
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;
731
698
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
732
699
  x: o,
733
700
  y: s
734
701
  };
735
702
  }
736
- var On = /* @__PURE__ */ V(0);
737
- function kn(e) {
738
- let t = q(e);
739
- return !vn() || !t.visualViewport ? On : {
703
+ var wn = /* @__PURE__ */ V(0);
704
+ function Tn(e) {
705
+ let t = K(e);
706
+ return !hn() || !t.visualViewport ? wn : {
740
707
  x: t.visualViewport.offsetLeft,
741
708
  y: t.visualViewport.offsetTop
742
709
  };
743
710
  }
744
- function An(e, t, n) {
745
- return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
711
+ function En(e, t, n) {
712
+ return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
746
713
  }
747
- function jn(e, t, n, r) {
714
+ function Dn(e, t, n, r) {
748
715
  t === void 0 && (t = !1), n === void 0 && (n = !1);
749
- let i = e.getBoundingClientRect(), a = En(e), o = V(1);
750
- t && (r ? Y(r) && (o = Dn(r)) : o = Dn(e));
751
- let s = An(a, n, r) ? kn(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 = 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;
752
719
  if (a) {
753
- let e = q(a), t = r && Y(r) ? q(r) : r, n = e, i = wn(n);
720
+ let e = K(a), t = r && J(r) ? K(r) : r, n = e, i = bn(n);
754
721
  for (; i && r && t !== n;) {
755
- let e = Dn(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;
756
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = q(i), i = wn(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);
757
724
  }
758
725
  }
759
- return K({
726
+ return It({
760
727
  width: u,
761
728
  height: d,
762
729
  x: c,
763
730
  y: l
764
731
  });
765
732
  }
766
- function Mn(e, t) {
767
- let n = xn(e).scrollLeft;
768
- return t ? t.left + n : jn(J(e)).left + n;
733
+ function On(e, t) {
734
+ let n = _n(e).scrollLeft;
735
+ return t ? t.left + n : Dn(q(e)).left + n;
769
736
  }
770
- function Nn(e, t) {
737
+ function kn(e, t) {
771
738
  let n = e.getBoundingClientRect();
772
739
  return {
773
- x: n.left + t.scrollLeft - Mn(e, n),
740
+ x: n.left + t.scrollLeft - On(e, n),
774
741
  y: n.top + t.scrollTop
775
742
  };
776
743
  }
777
- function Pn(e) {
778
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = J(r), s = t ? fn(t.floating) : !1;
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;
779
746
  if (r === o || s && a) return n;
780
747
  let c = {
781
748
  scrollLeft: 0,
782
749
  scrollTop: 0
783
- }, l = V(1), u = V(0), d = X(r);
784
- if ((d || !d && !a) && ((rn(r) !== "body" || cn(o)) && (c = xn(r)), X(r))) {
785
- let e = jn(r);
786
- l = Dn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
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;
787
754
  }
788
- let f = o && !d && !a ? Nn(o, c) : V(0);
755
+ let f = o && !d && !a ? kn(o, c) : V(0);
789
756
  return {
790
757
  width: n.width * l.x,
791
758
  height: n.height * l.y,
@@ -793,11 +760,11 @@ function Pn(e) {
793
760
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
794
761
  };
795
762
  }
796
- function Fn(e) {
763
+ function jn(e) {
797
764
  return Array.from(e.getClientRects());
798
765
  }
799
- function In(e) {
800
- let t = J(e), n = xn(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 + Mn(e), s = -n.scrollTop;
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;
801
768
  return Z(r).direction === "rtl" && (o += B(t.clientWidth, r.clientWidth) - i), {
802
769
  width: i,
803
770
  height: a,
@@ -805,19 +772,19 @@ function In(e) {
805
772
  y: s
806
773
  };
807
774
  }
808
- var Ln = 25;
809
- function Rn(e, t) {
810
- let n = q(e), r = J(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
775
+ var Nn = 25;
776
+ function Pn(e, t) {
777
+ let n = K(e), r = q(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
811
778
  if (i) {
812
779
  a = i.width, o = i.height;
813
- let e = vn();
780
+ let e = hn();
814
781
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
815
782
  }
816
- let l = Mn(r);
783
+ let l = On(r);
817
784
  if (l <= 0) {
818
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);
819
- o <= Ln && (a -= o);
820
- } else l <= Ln && (a += l);
786
+ o <= Nn && (a -= o);
787
+ } else l <= Nn && (a += l);
821
788
  return {
822
789
  width: a,
823
790
  height: o,
@@ -825,9 +792,8 @@ function Rn(e, t) {
825
792
  y: c
826
793
  };
827
794
  }
828
- var zn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
829
- function Bn(e, t) {
830
- let n = jn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = X(e) ? Dn(e) : V(1);
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);
831
797
  return {
832
798
  width: e.clientWidth * a.x,
833
799
  height: e.clientHeight * a.y,
@@ -835,13 +801,13 @@ function Bn(e, t) {
835
801
  y: r * a.y
836
802
  };
837
803
  }
838
- function Vn(e, t, n) {
804
+ function In(e, t, n) {
839
805
  let r;
840
- if (t === "viewport") r = Rn(e, n);
841
- else if (t === "document") r = In(J(e));
842
- else if (Y(t)) r = Bn(t, n);
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);
843
809
  else {
844
- let n = kn(e);
810
+ let n = Tn(e);
845
811
  r = {
846
812
  x: t.x - n.x,
847
813
  y: t.y - n.y,
@@ -849,55 +815,56 @@ function Vn(e, t, n) {
849
815
  height: t.height
850
816
  };
851
817
  }
852
- return K(r);
818
+ return It(r);
853
819
  }
854
- function Hn(e, t) {
820
+ function Ln(e, t) {
855
821
  let n = Q(e);
856
- return n === t || !Y(n) || bn(n) ? !1 : Z(n).position === "fixed" || Hn(n, t);
822
+ return n === t || !J(n) || gn(n) ? !1 : Z(n).position === "fixed" || Ln(n, t);
857
823
  }
858
- function Un(e, t) {
824
+ function Rn(e, t) {
859
825
  let n = t.get(e);
860
826
  if (n) return n;
861
- let r = Cn(e, [], !1).filter((e) => Y(e) && rn(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
862
- for (; Y(o) && !bn(o);) {
863
- let t = Z(o), n = gn(o);
864
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && zn.has(i.position) || cn(o) && !n && Hn(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Q(o);
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);
865
831
  }
866
832
  return t.set(e, r), r;
867
833
  }
868
- function Wn(e) {
869
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? fn(t) ? [] : Un(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce((e, n) => {
870
- let r = Vn(t, n, i);
871
- return e.top = B(r.top, e.top), e.right = z(r.right, e.right), e.bottom = z(r.bottom, e.bottom), e.left = B(r.left, e.left), e;
872
- }, Vn(t, o, i));
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;
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);
839
+ }
873
840
  return {
874
- width: s.right - s.left,
875
- height: s.bottom - s.top,
876
- x: s.left,
877
- y: s.top
841
+ width: c - u,
842
+ height: l - s,
843
+ x: u,
844
+ y: s
878
845
  };
879
846
  }
880
- function Gn(e) {
881
- let { width: t, height: n } = Tn(e);
847
+ function Bn(e) {
848
+ let { width: t, height: n } = xn(e);
882
849
  return {
883
850
  width: t,
884
851
  height: n
885
852
  };
886
853
  }
887
- function Kn(e, t, n) {
888
- let r = X(t), i = J(t), a = n === "fixed", o = jn(e, !0, a, t), s = {
854
+ function Vn(e, t, n) {
855
+ let r = Y(t), i = q(t), a = n === "fixed", o = Dn(e, !0, a, t), s = {
889
856
  scrollLeft: 0,
890
857
  scrollTop: 0
891
858
  }, c = V(0);
892
859
  function l() {
893
- c.x = Mn(i);
860
+ c.x = On(i);
894
861
  }
895
- if (r || !r && !a) if ((rn(t) !== "body" || cn(i)) && (s = xn(t)), r) {
896
- let e = jn(t, !0, a, t);
862
+ if (r || !r && !a) if ((rn(t) !== "body" || sn(i)) && (s = _n(t)), r) {
863
+ let e = Dn(t, !0, a, t);
897
864
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
898
865
  } else i && l();
899
866
  a && !r && i && l();
900
- let u = i && !r && !a ? Nn(i, s) : V(0);
867
+ let u = i && !r && !a ? kn(i, s) : V(0);
901
868
  return {
902
869
  x: o.left + s.scrollLeft - c.x - u.x,
903
870
  y: o.top + s.scrollTop - c.y - u.y,
@@ -905,34 +872,34 @@ function Kn(e, t, n) {
905
872
  height: o.height
906
873
  };
907
874
  }
908
- function qn(e) {
875
+ function Hn(e) {
909
876
  return Z(e).position === "static";
910
877
  }
911
- function Jn(e, t) {
912
- if (!X(e) || Z(e).position === "fixed") return null;
878
+ function Un(e, t) {
879
+ if (!Y(e) || Z(e).position === "fixed") return null;
913
880
  if (t) return t(e);
914
881
  let n = e.offsetParent;
915
- return J(e) === n && (n = n.ownerDocument.body), n;
882
+ return q(e) === n && (n = n.ownerDocument.body), n;
916
883
  }
917
- function Yn(e, t) {
918
- let n = q(e);
919
- if (fn(e)) return n;
920
- if (!X(e)) {
884
+ function Wn(e, t) {
885
+ let n = K(e);
886
+ if (ln(e)) return n;
887
+ if (!Y(e)) {
921
888
  let t = Q(e);
922
- for (; t && !bn(t);) {
923
- if (Y(t) && !qn(t)) return t;
889
+ for (; t && !gn(t);) {
890
+ if (J(t) && !Hn(t)) return t;
924
891
  t = Q(t);
925
892
  }
926
893
  return n;
927
894
  }
928
- let r = Jn(e, t);
929
- for (; r && un(r) && qn(r);) r = Jn(r, t);
930
- return r && bn(r) && qn(r) && !gn(r) ? n : r || _n(e) || n;
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;
931
898
  }
932
- var Xn = async function(e) {
933
- let t = this.getOffsetParent || Yn, n = this.getDimensions, r = await n(e.floating);
899
+ var Gn = async function(e) {
900
+ let t = this.getOffsetParent || Wn, n = this.getDimensions, r = await n(e.floating);
934
901
  return {
935
- reference: Kn(e.reference, await t(e.floating), e.strategy),
902
+ reference: Vn(e.reference, await t(e.floating), e.strategy),
936
903
  floating: {
937
904
  x: 0,
938
905
  y: 0,
@@ -941,23 +908,23 @@ var Xn = async function(e) {
941
908
  }
942
909
  };
943
910
  };
944
- function Zn(e) {
911
+ function Kn(e) {
945
912
  return Z(e).direction === "rtl";
946
913
  }
947
- var Qn = {
948
- convertOffsetParentRelativeRectToViewportRelativeRect: Pn,
949
- getDocumentElement: J,
950
- getClippingRect: Wn,
951
- getOffsetParent: Yn,
952
- getElementRects: Xn,
953
- getClientRects: Fn,
954
- getDimensions: Gn,
955
- getScale: Dn,
956
- isElement: Y,
957
- isRTL: Zn
958
- }, $n = $t, er = Ut, tr = en, nr = Wt, rr = tn, ir = qt, ar = Vt, or = Xt, sr = (e, t, n) => {
914
+ var qn = {
915
+ convertOffsetParentRelativeRectToViewportRelativeRect: An,
916
+ getDocumentElement: q,
917
+ getClippingRect: zn,
918
+ getOffsetParent: Wn,
919
+ getElementRects: Gn,
920
+ getClientRects: jn,
921
+ getDimensions: Bn,
922
+ getScale: Cn,
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) => {
959
926
  let r = /* @__PURE__ */ new Map(), i = {
960
- platform: Qn,
927
+ platform: qn,
961
928
  ...n
962
929
  }, a = {
963
930
  ...i.platform,
@@ -969,12 +936,12 @@ var Qn = {
969
936
  });
970
937
  };
971
938
  //#endregion
972
- //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=hlk524tqy4svh2bbayevihx324_@floating-ui+dom@1.7.5_@tiptap+cor_wypobou4fbppmu3gb2jat4rp64/node_modules/@tiptap/vue-3/dist/menus/index.js
973
- function cr(e, t) {
974
- 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, s = i, c = n;
975
- return new DOMRect(s, c, a, o);
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) {
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
+ return new DOMRect(i, n, a, o);
976
943
  }
977
- var lr = class {
944
+ var ir = class {
978
945
  constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, shouldShow: a, appendTo: o, getReferencedVirtualElement: s, options: c }) {
979
946
  this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.floatingUIOptions = {
980
947
  strategy: "absolute",
@@ -1038,7 +1005,7 @@ var lr = class {
1038
1005
  }
1039
1006
  get middlewares() {
1040
1007
  let e = [];
1041
- return this.floatingUIOptions.flip && e.push(nr(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(tr(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push($n(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(ar(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(rr(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(er(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(ir(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(or(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), 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;
1042
1009
  }
1043
1010
  get virtualElement() {
1044
1011
  let { selection: e } = this.editor.state, t = this.getReferencedVirtualElement?.call(this);
@@ -1058,7 +1025,7 @@ var lr = class {
1058
1025
  if (e instanceof Le) {
1059
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);
1060
1027
  if (!o || !s) return;
1061
- let c = o === s ? o.getBoundingClientRect() : cr(o.getBoundingClientRect(), s.getBoundingClientRect());
1028
+ let c = o === s ? o.getBoundingClientRect() : rr(o.getBoundingClientRect(), s.getBoundingClientRect());
1062
1029
  r = {
1063
1030
  getBoundingClientRect: () => c,
1064
1031
  getClientRects: () => [c]
@@ -1068,7 +1035,7 @@ var lr = class {
1068
1035
  }
1069
1036
  updatePosition() {
1070
1037
  let e = this.virtualElement;
1071
- e && sr(e, this.element, {
1038
+ e && nr(e, this.element, {
1072
1039
  placement: this.floatingUIOptions.placement,
1073
1040
  strategy: this.floatingUIOptions.strategy,
1074
1041
  middleware: this.middlewares
@@ -1120,13 +1087,13 @@ var lr = class {
1120
1087
  destroy() {
1121
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();
1122
1089
  }
1123
- }, ur = (e) => new Ie({
1090
+ }, ar = (e) => new Ie({
1124
1091
  key: typeof e.pluginKey == "string" ? new R(e.pluginKey) : e.pluginKey,
1125
- view: (t) => new lr({
1092
+ view: (t) => new ir({
1126
1093
  view: t,
1127
1094
  ...e
1128
1095
  })
1129
- }), dr = ie({
1096
+ }), or = ie({
1130
1097
  name: "BubbleMenu",
1131
1098
  inheritAttrs: !1,
1132
1099
  props: {
@@ -1168,7 +1135,7 @@ var lr = class {
1168
1135
  return de(() => {
1169
1136
  let { editor: t, options: n, pluginKey: i, resizeDelay: a, appendTo: o, shouldShow: s, getReferencedVirtualElement: c, updateDelay: l } = e, u = r.value;
1170
1137
  u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(), ce(() => {
1171
- t.registerPlugin(ur({
1138
+ t.registerPlugin(ar({
1172
1139
  editor: t,
1173
1140
  element: u,
1174
1141
  options: n,
@@ -1188,7 +1155,7 @@ var lr = class {
1188
1155
  ...n
1189
1156
  }, t.default?.call(t));
1190
1157
  }
1191
- }), fr = class {
1158
+ }), sr = class {
1192
1159
  constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, options: a, appendTo: o, shouldShow: s }) {
1193
1160
  this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.shouldShow = ({ view: e, state: t }) => {
1194
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);
@@ -1240,7 +1207,7 @@ var lr = class {
1240
1207
  }
1241
1208
  get middlewares() {
1242
1209
  let e = [];
1243
- return this.floatingUIOptions.flip && e.push(nr(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(tr(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push($n(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(ar(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(rr(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(er(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(ir(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(or(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), 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;
1244
1211
  }
1245
1212
  getShouldShow(e) {
1246
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));
@@ -1264,7 +1231,7 @@ var lr = class {
1264
1231
  }
1265
1232
  updatePosition() {
1266
1233
  let { selection: e } = this.editor.state, t = Pe(this.view, e.from, e.to);
1267
- sr({
1234
+ nr({
1268
1235
  getBoundingClientRect: () => t,
1269
1236
  getClientRects: () => [t]
1270
1237
  }, this.element, {
@@ -1293,9 +1260,9 @@ var lr = class {
1293
1260
  destroy() {
1294
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();
1295
1262
  }
1296
- }, pr = (e) => new Ie({
1263
+ }, cr = (e) => new Ie({
1297
1264
  key: typeof e.pluginKey == "string" ? new R(e.pluginKey) : e.pluginKey,
1298
- view: (t) => new fr({
1265
+ view: (t) => new sr({
1299
1266
  view: t,
1300
1267
  ...e
1301
1268
  })
@@ -1337,7 +1304,7 @@ ie({
1337
1304
  let r = fe(null);
1338
1305
  return de(() => {
1339
1306
  let { pluginKey: t, editor: n, updateDelay: i, resizeDelay: a, options: o, appendTo: s, shouldShow: c } = e, l = r.value;
1340
- l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(pr({
1307
+ l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(cr({
1341
1308
  pluginKey: t,
1342
1309
  editor: n,
1343
1310
  element: l,
@@ -1362,21 +1329,21 @@ var $ = (e) => ({
1362
1329
  default: null,
1363
1330
  parseHTML: (t) => t.getAttribute(e),
1364
1331
  renderHTML: (t) => t[e] ? { [e]: t[e] } : {}
1365
- }), mr = () => {
1332
+ }), lr = () => {
1366
1333
  let e = $("style");
1367
- return e.renderHTML = (e) => e.style ? { style: hr(e.style) } : {}, e;
1334
+ return e.renderHTML = (e) => e.style ? { style: ur(e.style) } : {}, e;
1368
1335
  };
1369
- function hr(e) {
1336
+ function ur(e) {
1370
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);
1371
1338
  }
1372
- var gr = rt.extend({
1339
+ var dr = rt.extend({
1373
1340
  addAttributes() {
1374
1341
  return {
1375
1342
  ...this.parent?.(),
1376
1343
  border: $("border"),
1377
1344
  cellpadding: $("cellpadding"),
1378
1345
  cellspacing: $("cellspacing"),
1379
- style: mr()
1346
+ style: lr()
1380
1347
  };
1381
1348
  },
1382
1349
  renderHTML({ HTMLAttributes: e }) {
@@ -1386,26 +1353,26 @@ var gr = rt.extend({
1386
1353
  ["tbody", 0]
1387
1354
  ];
1388
1355
  }
1389
- }), _r = ot.extend({ addAttributes() {
1356
+ }), fr = ot.extend({ addAttributes() {
1390
1357
  return {
1391
1358
  ...this.parent?.(),
1392
1359
  style: $("style")
1393
1360
  };
1394
- } }), vr = {
1361
+ } }), pr = {
1395
1362
  style: $("style"),
1396
1363
  valign: $("valign"),
1397
1364
  width: $("width")
1398
- }, yr = it.extend({ addAttributes() {
1365
+ }, mr = it.extend({ addAttributes() {
1399
1366
  return {
1400
1367
  ...this.parent?.(),
1401
- ...vr
1368
+ ...pr
1402
1369
  };
1403
- } }), br = at.extend({ addAttributes() {
1370
+ } }), hr = at.extend({ addAttributes() {
1404
1371
  return {
1405
1372
  ...this.parent?.(),
1406
- ...vr
1373
+ ...pr
1407
1374
  };
1408
- } }), xr = st.extend({ parseHTML() {
1375
+ } }), gr = st.extend({ parseHTML() {
1409
1376
  return [
1410
1377
  ...this.parent?.() || [],
1411
1378
  {
@@ -1419,7 +1386,7 @@ var gr = rt.extend({
1419
1386
  getAttrs: (e) => e.hasAttribute("style") ? {} : !1
1420
1387
  }
1421
1388
  ];
1422
- } }), Sr = {
1389
+ } }), _r = {
1423
1390
  compatConfig: { MODE: 3 },
1424
1391
  name: "EmojiComponent",
1425
1392
  components: {
@@ -1428,9 +1395,9 @@ var gr = rt.extend({
1428
1395
  },
1429
1396
  props: T
1430
1397
  };
1431
- function Cr(e, t, n, r, i, a) {
1398
+ function vr(e, t, n, r, i, a) {
1432
1399
  let o = P("dt-emoji"), s = P("node-view-wrapper");
1433
- return N(), D(s, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1400
+ return N(), O(s, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1434
1401
  default: I(() => [M(o, {
1435
1402
  size: "500",
1436
1403
  code: e.node.attrs.code
@@ -1438,7 +1405,7 @@ function Cr(e, t, n, r, i, a) {
1438
1405
  _: 1
1439
1406
  });
1440
1407
  }
1441
- var wr = /* @__PURE__ */ i(Sr, [["render", Cr]]), Tr = {
1408
+ var yr = /* @__PURE__ */ i(_r, [["render", vr]]), br = {
1442
1409
  compatConfig: { MODE: 3 },
1443
1410
  name: "SuggestionList",
1444
1411
  components: { DtListItem: h },
@@ -1515,20 +1482,20 @@ var wr = /* @__PURE__ */ i(Sr, [["render", Cr]]), Tr = {
1515
1482
  }
1516
1483
  }
1517
1484
  }
1518
- }, Er = { class: "d-popover__dialog d-suggestion-list__container" }, Dr = {
1485
+ }, xr = { class: "d-popover__dialog d-suggestion-list__container" }, Sr = {
1519
1486
  ref: "suggestionList",
1520
1487
  class: "d-suggestion-list"
1521
1488
  };
1522
- function Or(e, t, n, r, i, a) {
1489
+ function Cr(e, t, n, r, i, a) {
1523
1490
  let o = P("dt-list-item");
1524
- return N(), k("div", Er, [ge(A("ul", Dr, [(N(!0), k(E, null, pe(n.items, (e, t) => (N(), D(o, {
1491
+ return N(), A("div", xr, [ge(j("ul", Sr, [(N(!0), A(D, null, pe(n.items, (e, t) => (N(), O(o, {
1525
1492
  key: e.id,
1526
1493
  class: le(["d-suggestion-list__item", { "d-list-item--highlighted": t === i.selectedIndex }]),
1527
1494
  "navigation-type": "arrow-keys",
1528
1495
  onClick: (e) => a.selectItem(t),
1529
1496
  onKeydown: ve(a.onKeyDown, ["prevent"])
1530
1497
  }, {
1531
- default: I(() => [(N(), D(me(n.itemComponent), { item: e }, null, 8, ["item"]))]),
1498
+ default: I(() => [(N(), O(me(n.itemComponent), { item: e }, null, 8, ["item"]))]),
1532
1499
  _: 2
1533
1500
  }, 1032, [
1534
1501
  "class",
@@ -1536,8 +1503,8 @@ function Or(e, t, n, r, i, a) {
1536
1503
  "onKeydown"
1537
1504
  ]))), 128))], 512), [[he, n.items.length]])]);
1538
1505
  }
1539
- var kr = /* @__PURE__ */ i(Tr, [["render", Or]]), Ar = "top-start";
1540
- function jr() {
1506
+ var wr = /* @__PURE__ */ i(br, [["render", Cr]]), Tr = "top-start";
1507
+ function Er() {
1541
1508
  return { getBoundingClientRect: () => ({
1542
1509
  width: 0,
1543
1510
  height: 0,
@@ -1549,16 +1516,16 @@ function jr() {
1549
1516
  bottom: 0
1550
1517
  }) };
1551
1518
  }
1552
- function Mr(e) {
1519
+ function Dr(e) {
1553
1520
  return { getBoundingClientRect: e };
1554
1521
  }
1555
- async function Nr(e, t, n = {}) {
1522
+ async function Or(e, t, n = {}) {
1556
1523
  if (!e || !t?.getBoundingClientRect) return;
1557
- let { placement: r = Ar, middleware: i = [
1558
- $n(0),
1559
- nr(),
1560
- tr({ padding: 8 })
1561
- ] } = n, { x: a, y: o } = await sr(t, e, {
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, {
1562
1529
  placement: r,
1563
1530
  middleware: i
1564
1531
  });
@@ -1567,28 +1534,28 @@ async function Nr(e, t, n = {}) {
1567
1534
  top: `${o}px`
1568
1535
  });
1569
1536
  }
1570
- function Pr(e, t = {}) {
1537
+ function kr(e, t = {}) {
1571
1538
  let { zIndex: n = "650" } = t;
1572
1539
  e.style.position = "absolute", e.style.zIndex = n, e.style.display = "none";
1573
1540
  }
1574
- function Fr(e) {
1541
+ function Ar(e) {
1575
1542
  e && (e.style.display = "block");
1576
1543
  }
1577
- function Ir(e) {
1544
+ function jr(e) {
1578
1545
  e && (e.style.display = "none");
1579
1546
  }
1580
- function Lr(e, t) {
1547
+ function Mr(e, t) {
1581
1548
  return (n) => {
1582
1549
  n.key === "Escape" && t() && e();
1583
1550
  };
1584
1551
  }
1585
- function Rr(e) {
1552
+ function Nr(e) {
1586
1553
  document.addEventListener("keydown", e);
1587
1554
  }
1588
- function zr(e) {
1555
+ function Pr(e) {
1589
1556
  document.removeEventListener("keydown", e);
1590
1557
  }
1591
- function Br(e, t, n, r) {
1558
+ function Fr(e, t, n, r) {
1592
1559
  return new w(e, {
1593
1560
  props: {
1594
1561
  itemComponent: oe(t),
@@ -1598,34 +1565,34 @@ function Br(e, t, n, r) {
1598
1565
  editor: r.editor
1599
1566
  });
1600
1567
  }
1601
- function Vr(e) {
1602
- e.escHandler && zr(e.escHandler), e.floatingEl?.remove(), e.component?.destroy();
1568
+ function Ir(e) {
1569
+ e.escHandler && Pr(e.escHandler), e.floatingEl?.remove(), e.component?.destroy();
1603
1570
  }
1604
- function Hr(e, t, n = {}) {
1605
- let { listComponent: r = kr, placement: i = Ar, zIndex: a = "650" } = n;
1571
+ function Lr(e, t, n = {}) {
1572
+ let { listComponent: r = wr, placement: i = Tr, zIndex: a = "650" } = n;
1606
1573
  return () => {
1607
- let n = null, o = null, s = !1, c = jr(), l = null;
1574
+ let n = null, o = null, s = !1, c = Er(), l = null;
1608
1575
  function u() {
1609
- Nr(o, c, { placement: i });
1576
+ Or(o, c, { placement: i });
1610
1577
  }
1611
1578
  function d() {
1612
- o && (Fr(o), s = !0, u());
1579
+ o && (Ar(o), s = !0, u());
1613
1580
  }
1614
1581
  function f() {
1615
- o && (Ir(o), s = !1);
1582
+ o && (jr(o), s = !1);
1616
1583
  }
1617
1584
  return {
1618
1585
  onStart: (i) => {
1619
- n = Br(r, e, t, i), i.clientRect && (o = n.element, Pr(o, { zIndex: a }), document.body.appendChild(o), c = Mr(i.clientRect), l = Lr(f, () => s), Rr(l), i.items.length > 0 && d());
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());
1620
1587
  },
1621
1588
  onUpdate(e) {
1622
- n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c = Mr(e.clientRect), u());
1589
+ n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c = Dr(e.clientRect), u());
1623
1590
  },
1624
1591
  onKeyDown(e) {
1625
1592
  if (s) return n?.ref?.onKeyDown(e);
1626
1593
  },
1627
1594
  onExit() {
1628
- Vr({
1595
+ Ir({
1629
1596
  escHandler: l,
1630
1597
  floatingEl: o,
1631
1598
  component: n
@@ -1636,7 +1603,7 @@ function Hr(e, t, n = {}) {
1636
1603
  }
1637
1604
  //#endregion
1638
1605
  //#region components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue
1639
- var Ur = {
1606
+ var Rr = {
1640
1607
  compatConfig: { MODE: 3 },
1641
1608
  name: "EmojiSuggestion",
1642
1609
  components: {
@@ -1648,23 +1615,23 @@ var Ur = {
1648
1615
  required: !0
1649
1616
  } }
1650
1617
  };
1651
- function Wr(e, t, n, r, i, a) {
1618
+ function zr(e, t, n, r, i, a) {
1652
1619
  let o = P("dt-emoji"), s = P("dt-stack");
1653
- return N(), D(s, {
1620
+ return N(), O(s, {
1654
1621
  direction: "row",
1655
1622
  gap: "400"
1656
1623
  }, {
1657
1624
  default: I(() => [M(o, {
1658
1625
  size: "200",
1659
1626
  code: n.item.code
1660
- }, null, 8, ["code"]), j(" " + F(n.item.code), 1)]),
1627
+ }, null, 8, ["code"]), re(" " + F(n.item.code), 1)]),
1661
1628
  _: 1
1662
1629
  });
1663
1630
  }
1664
- var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1631
+ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
1665
1632
  let r = e.shortname?.replaceAll(":", ""), i = t.shortname?.replaceAll(":", ""), a = r.startsWith(n), o = i.startsWith(n);
1666
1633
  return a && !o ? -1 : !a && o ? 1 : r.localeCompare(i);
1667
- }, Jr = {
1634
+ }, Ur = {
1668
1635
  items: ({ query: e }) => {
1669
1636
  if (e.length < 2) return [];
1670
1637
  let t = Object.values(c());
@@ -1672,7 +1639,7 @@ var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1672
1639
  t.name,
1673
1640
  t.shortname?.replaceAll(":", ""),
1674
1641
  ...t.keywords || []
1675
- ].some((t) => t && t.startsWith(e))).splice(0, Kr).sort((t, n) => qr(t, n, e)).map((e) => ({ code: e.shortname }));
1642
+ ].some((t) => t && t.startsWith(e))).splice(0, Vr).sort((t, n) => Hr(t, n, e)).map((e) => ({ code: e.shortname }));
1676
1643
  },
1677
1644
  command: ({ editor: e, range: t, props: n }) => {
1678
1645
  e.view.state.selection.$to.nodeAfter?.text?.startsWith(" ") && (t.to += 1), e.chain().focus().insertContentAt(t, [{
@@ -1680,14 +1647,14 @@ var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1680
1647
  attrs: n
1681
1648
  }]).run(), window.getSelection()?.collapseToEnd();
1682
1649
  },
1683
- render: Hr(Gr, "emoji")
1684
- }, Yr = /(:\w+:)$/, Xr = RegExp(ye + "$"), Zr = (e) => {
1650
+ render: Lr(Br, "emoji")
1651
+ }, Wr = /(:\w+:)$/, Gr = RegExp(ye + "$"), Kr = (e) => {
1685
1652
  if (e && a(e[0])) return { text: e[2] || e[0] };
1686
- }, Qr = (e) => [...e.matchAll(s)].filter((e) => a(e[0])).map((e) => ({
1653
+ }, qr = (e) => [...e.matchAll(s)].filter((e) => a(e[0])).map((e) => ({
1687
1654
  index: e.index,
1688
1655
  text: e[0],
1689
1656
  match: e
1690
- })), $r = we.create({
1657
+ })), Jr = we.create({
1691
1658
  name: "emoji",
1692
1659
  addOptions() {
1693
1660
  return { HTMLAttributes: {} };
@@ -1697,7 +1664,7 @@ var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1697
1664
  selectable: !1,
1698
1665
  atom: !0,
1699
1666
  addNodeView() {
1700
- return C(wr);
1667
+ return C(yr);
1701
1668
  },
1702
1669
  addAttributes() {
1703
1670
  return { code: { default: null } };
@@ -1714,8 +1681,8 @@ var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1714
1681
  addInputRules() {
1715
1682
  return [new Se({
1716
1683
  find: (e) => {
1717
- let t = e.match(Yr) || e.match(Xr);
1718
- if (t) return Zr(t);
1684
+ let t = e.match(Wr) || e.match(Gr);
1685
+ if (t) return Kr(t);
1719
1686
  },
1720
1687
  handler: ({ state: e, range: t, match: n }) => {
1721
1688
  let { tr: r } = e, i = t.from, a = t.to;
@@ -1725,7 +1692,7 @@ var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1725
1692
  },
1726
1693
  addPasteRules() {
1727
1694
  return [Ne({
1728
- find: Qr,
1695
+ find: qr,
1729
1696
  type: this.type,
1730
1697
  getAttributes(e) {
1731
1698
  return { code: e[0] };
@@ -1744,7 +1711,7 @@ var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1744
1711
  pluginKey: new R("emoji"),
1745
1712
  editor: this.editor,
1746
1713
  ...this.options.suggestion,
1747
- ...Jr
1714
+ ...Ur
1748
1715
  })];
1749
1716
  },
1750
1717
  addKeyboardShortcuts() {
@@ -1758,21 +1725,21 @@ var Gr = /* @__PURE__ */ i(Ur, [["render", Wr]]), Kr = 20, qr = (e, t, n) => {
1758
1725
  });
1759
1726
  //#endregion
1760
1727
  //#region components/rich_text_editor/extensions/custom_link/utils.js
1761
- function ei(e, t, n = () => !0) {
1728
+ function Yr(e, t, n = () => !0) {
1762
1729
  let r = [];
1763
1730
  t.lastIndex = 0;
1764
1731
  let i;
1765
1732
  for (; i = t.exec(e);) n(e, i) && r.push(i);
1766
1733
  return r;
1767
1734
  }
1768
- function ti(e, t) {
1735
+ function Xr(e, t) {
1769
1736
  return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
1770
1737
  }
1771
- function ni(e) {
1738
+ function Zr(e) {
1772
1739
  let t = RegExp("(?:" + ["[!?.,:;'\"]", "(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
1773
1740
  return e.replace(t, "");
1774
1741
  }
1775
- function ri(e, t) {
1742
+ function Qr(e, t) {
1776
1743
  let n = e.slice(0, t + 1).search(/\S+\s*$/), r = e.slice(t).search(/\s/);
1777
1744
  if (r < 0) {
1778
1745
  let t = e.slice(n);
@@ -1788,30 +1755,30 @@ function ri(e, t) {
1788
1755
  to: r + t
1789
1756
  };
1790
1757
  }
1791
- function ii(e, t, n, r) {
1792
- let i = ri(e, t);
1758
+ function $r(e, t, n, r) {
1759
+ let i = Qr(e, t);
1793
1760
  if (r.lastIndex = 0, !r.test(i.text)) return i;
1794
1761
  let a = n === "left" ? i.from - 1 : i.to + 1;
1795
- return a <= 0 || a >= e.length || a === t ? i : ii(e, a, n, r);
1762
+ return a <= 0 || a >= e.length || a === t ? i : $r(e, a, n, r);
1796
1763
  }
1797
- function ai(e, t, n, r) {
1764
+ function ei(e, t, n, r) {
1798
1765
  let i = Oe(Math.max(e.from - 1, 0), Math.min(e.to + 1, t.content.size), t);
1799
1766
  for (let e of i) e.mark.type === r && n.removeMark(e.from, e.to, r);
1800
1767
  }
1801
- var oi = e(1, 15);
1802
- function si(e, n, r, i, a, o) {
1768
+ var ti = e(1, 15);
1769
+ function ni(e, n, r, i, a, o) {
1803
1770
  if (!e) return;
1804
1771
  let s = r - n - 1;
1805
1772
  s = s < 0 ? 0 : s;
1806
- let c = i - n, l = ii(e, s, "left", oi), u = ii(e, c, "right", oi);
1807
- ei(e.slice(l.from, u.to), t, ti).forEach((e) => {
1808
- let t = ni(e[0]), r = n + l.from + e.index + 1, i = r + t.length;
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;
1809
1776
  a.addMark(r, i, o.create());
1810
1777
  });
1811
1778
  }
1812
1779
  //#endregion
1813
1780
  //#region components/rich_text_editor/extensions/custom_link/autolink.js
1814
- function ci(e) {
1781
+ function ri(e) {
1815
1782
  let t = !1;
1816
1783
  return new Ie({
1817
1784
  key: new R("autolink"),
@@ -1819,9 +1786,9 @@ function ci(e) {
1819
1786
  let a = n.some((e) => e.docChanged) && !r.doc.eq(i.doc);
1820
1787
  if (t && !a) return;
1821
1788
  let { tr: o } = i, { textContent: s } = i.doc;
1822
- return t || si(s, 0, 0, s.length, o, e.type), t = !0, De(Te(r.doc, [...n])).forEach(({ oldRange: t, newRange: n }) => {
1823
- ai(n, i.doc, o, e.type), Ee(i.doc, n, (e) => e.isTextblock).forEach(({ node: r, pos: i }) => {
1824
- si(r.textContent, i, t.from, n.to, o, e.type);
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);
1825
1792
  });
1826
1793
  }), o;
1827
1794
  }
@@ -1829,21 +1796,21 @@ function ci(e) {
1829
1796
  }
1830
1797
  //#endregion
1831
1798
  //#region components/rich_text_editor/extensions/custom_link/custom_link.js
1832
- var li = {
1799
+ var ii = {
1833
1800
  class: "d-link d-c-text d-d-inline-block d-wb-break-all",
1834
1801
  rel: "noopener noreferrer nofollow"
1835
- }, ui = Ce.create({
1802
+ }, ai = Ce.create({
1836
1803
  name: "CustomLink",
1837
1804
  renderHTML({ HTMLAttributes: e }) {
1838
- return ["a", L(this.options.HTMLAttributes, e, li)];
1805
+ return ["a", L(this.options.HTMLAttributes, e, ii)];
1839
1806
  },
1840
1807
  renderText({ node: e }) {
1841
1808
  return e.attrs.text;
1842
1809
  },
1843
1810
  addProseMirrorPlugins() {
1844
- return [ci({ type: this.type })];
1811
+ return [ri({ type: this.type })];
1845
1812
  }
1846
- }), di = ut.extend({
1813
+ }), oi = ut.extend({
1847
1814
  name: "ConfigurableImage",
1848
1815
  addAttributes() {
1849
1816
  return {
@@ -1858,12 +1825,12 @@ var li = {
1858
1825
  }).configure({
1859
1826
  inline: !0,
1860
1827
  allowBase64: !0
1861
- }), fi = 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(".")), pi = Ke.extend({
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({
1862
1829
  parseHTML() {
1863
1830
  return [{
1864
1831
  tag: "div",
1865
1832
  getAttrs: (e) => {
1866
- for (let t of e.children) if (fi.has(t.tagName.toLowerCase())) return !1;
1833
+ for (let t of e.children) if (si.has(t.tagName.toLowerCase())) return !1;
1867
1834
  return null;
1868
1835
  }
1869
1836
  }];
@@ -1875,7 +1842,7 @@ var li = {
1875
1842
  0
1876
1843
  ];
1877
1844
  }
1878
- }), mi = {
1845
+ }), li = {
1879
1846
  compatConfig: { MODE: 3 },
1880
1847
  name: "MentionComponent",
1881
1848
  components: {
@@ -1912,9 +1879,9 @@ var li = {
1912
1879
  }
1913
1880
  }
1914
1881
  };
1915
- function hi(e, t, n, r, i, a) {
1882
+ function ui(e, t, n, r, i, a) {
1916
1883
  let o = P("dt-link"), s = P("node-view-wrapper");
1917
- return N(), D(s, { class: "d-d-inline-block" }, {
1884
+ return N(), O(s, { class: "d-d-inline-block" }, {
1918
1885
  default: I(() => [M(o, {
1919
1886
  kind: "mention",
1920
1887
  onClick: ve(a.handleClick, ["prevent"]),
@@ -1923,7 +1890,7 @@ function hi(e, t, n, r, i, a) {
1923
1890
  onFocusin: a.handleMouseEnter,
1924
1891
  onFocusout: a.handleMouseLeave
1925
1892
  }, {
1926
- default: I(() => [j(F(a.text), 1)]),
1893
+ default: I(() => [re(F(a.text), 1)]),
1927
1894
  _: 1
1928
1895
  }, 8, [
1929
1896
  "onClick",
@@ -1935,9 +1902,9 @@ function hi(e, t, n, r, i, a) {
1935
1902
  _: 1
1936
1903
  });
1937
1904
  }
1938
- var gi = /* @__PURE__ */ i(mi, [["render", hi]]), _i = dt.extend({
1905
+ var di = /* @__PURE__ */ i(li, [["render", ui]]), fi = dt.extend({
1939
1906
  addNodeView() {
1940
- return C(gi);
1907
+ return C(di);
1941
1908
  },
1942
1909
  parseHTML() {
1943
1910
  return [{ tag: "mention-component" }];
@@ -1959,7 +1926,7 @@ var gi = /* @__PURE__ */ i(mi, [["render", hi]]), _i = dt.extend({
1959
1926
  }).configure({ suggestion: {
1960
1927
  char: "@",
1961
1928
  pluginKey: new R("mentionSuggestion")
1962
- } }), vi = {
1929
+ } }), pi = {
1963
1930
  compatConfig: { MODE: 3 },
1964
1931
  name: "ChannelComponent",
1965
1932
  components: {
@@ -1982,9 +1949,9 @@ var gi = /* @__PURE__ */ i(mi, [["render", hi]]), _i = dt.extend({
1982
1949
  this.$props.editor.emit("channel-click", e);
1983
1950
  } }
1984
1951
  };
1985
- function yi(e, t, n, r, i, a) {
1952
+ function mi(e, t, n, r, i, a) {
1986
1953
  let o = P("dt-icon-lock"), s = P("dt-stack"), c = P("dt-link"), l = P("node-view-wrapper");
1987
- return N(), D(l, { class: "d-d-inline-block" }, {
1954
+ return N(), O(l, { class: "d-d-inline-block" }, {
1988
1955
  default: I(() => [M(c, {
1989
1956
  kind: "mention",
1990
1957
  onClick: ve(a.handleClick, ["prevent"])
@@ -1993,10 +1960,10 @@ function yi(e, t, n, r, i, a) {
1993
1960
  direction: "row",
1994
1961
  gap: "0"
1995
1962
  }, {
1996
- default: I(() => [e.$props.node.attrs.locked ? (N(), D(o, {
1963
+ default: I(() => [e.$props.node.attrs.locked ? (N(), O(o, {
1997
1964
  key: 0,
1998
1965
  size: "200"
1999
- })) : O("", !0), A("span", null, F(a.text), 1)]),
1966
+ })) : k("", !0), j("span", null, F(a.text), 1)]),
2000
1967
  _: 1
2001
1968
  })]),
2002
1969
  _: 1
@@ -2004,10 +1971,10 @@ function yi(e, t, n, r, i, a) {
2004
1971
  _: 1
2005
1972
  });
2006
1973
  }
2007
- var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = dt.extend({
1974
+ var hi = /* @__PURE__ */ i(pi, [["render", mi]]), gi = dt.extend({
2008
1975
  name: "channel",
2009
1976
  addNodeView() {
2010
- return C(bi);
1977
+ return C(hi);
2011
1978
  },
2012
1979
  parseHTML() {
2013
1980
  return [{ tag: "channel-component" }];
@@ -2029,7 +1996,7 @@ var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = dt.extend({
2029
1996
  }).configure({ suggestion: {
2030
1997
  char: "#",
2031
1998
  pluginKey: new R("channelSuggestion")
2032
- } }), Si = {
1999
+ } }), _i = {
2033
2000
  compatConfig: { MODE: 3 },
2034
2001
  name: "SlashCommandsComponent",
2035
2002
  components: { NodeViewWrapper: S },
@@ -2045,21 +2012,21 @@ var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = dt.extend({
2045
2012
  t && typeof t == "function" && t(e);
2046
2013
  }
2047
2014
  };
2048
- function Ci(e, t, n, r, i, a) {
2015
+ function vi(e, t, n, r, i, a) {
2049
2016
  let o = P("node-view-wrapper");
2050
- return N(), D(o, { class: "d-d-inline-block" }, {
2051
- default: I(() => [j(F(a.text), 1)]),
2017
+ return N(), O(o, { class: "d-d-inline-block" }, {
2018
+ default: I(() => [re(F(a.text), 1)]),
2052
2019
  _: 1
2053
2020
  });
2054
2021
  }
2055
- var wi = /* @__PURE__ */ i(Si, [["render", Ci]]), Ti = (e, t) => [...e.matchAll(t)].map((e) => {
2022
+ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(t)].map((e) => {
2056
2023
  let t = e[2];
2057
2024
  return t.endsWith(" ") || (t += " "), {
2058
2025
  index: e.index,
2059
2026
  text: t,
2060
2027
  match: e
2061
2028
  };
2062
- }), Ei = dt.extend({
2029
+ }), xi = dt.extend({
2063
2030
  name: "slash-commands",
2064
2031
  group: "inline",
2065
2032
  inline: !0,
@@ -2073,7 +2040,7 @@ var wi = /* @__PURE__ */ i(Si, [["render", Ci]]), Ti = (e, t) => [...e.matchAll(
2073
2040
  return { onSelectedCommand: this.options.onSelectedCommand };
2074
2041
  },
2075
2042
  addNodeView() {
2076
- return C(wi);
2043
+ return C(yi);
2077
2044
  },
2078
2045
  parseHTML() {
2079
2046
  return [{ tag: "command-component" }];
@@ -2104,7 +2071,7 @@ var wi = /* @__PURE__ */ i(Si, [["render", Ci]]), Ti = (e, t) => [...e.matchAll(
2104
2071
  addPasteRules() {
2105
2072
  let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command), t = RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
2106
2073
  return [Ne({
2107
- find: (e) => Ti(e, t),
2074
+ find: (e) => bi(e, t),
2108
2075
  type: this.type,
2109
2076
  getAttributes(e) {
2110
2077
  return { command: e[0].trim() };
@@ -2114,7 +2081,7 @@ var wi = /* @__PURE__ */ i(Si, [["render", Ci]]), Ti = (e, t) => [...e.matchAll(
2114
2081
  }).configure({ suggestion: {
2115
2082
  char: "/",
2116
2083
  pluginKey: new R("slashCommandSuggestion")
2117
- } }), Di = 100, Oi = {
2084
+ } }), Si = 100, Ci = {
2118
2085
  name: "VariableComponent",
2119
2086
  components: {
2120
2087
  DtBadge: d,
@@ -2127,7 +2094,7 @@ var wi = /* @__PURE__ */ i(Si, [["render", Ci]]), Ti = (e, t) => [...e.matchAll(
2127
2094
  data() {
2128
2095
  return {
2129
2096
  i18n: new p(),
2130
- MAX_VARIABLE_ALT_LENGTH: Di
2097
+ MAX_VARIABLE_ALT_LENGTH: Si
2131
2098
  };
2132
2099
  },
2133
2100
  computed: {
@@ -2162,10 +2129,10 @@ var wi = /* @__PURE__ */ i(Si, [["render", Ci]]), Ti = (e, t) => [...e.matchAll(
2162
2129
  }
2163
2130
  }
2164
2131
  };
2165
- function ki(e, t, n, r, i, a) {
2132
+ function wi(e, t, n, r, i, a) {
2166
2133
  let o = P("dt-badge"), s = P("dt-button"), c = P("dt-input"), l = P("dt-popover"), u = P("node-view-wrapper");
2167
- return N(), D(u, { class: "d-d-inline-block" }, {
2168
- default: I(() => [a.enableAltText ? (N(), D(l, {
2134
+ return N(), O(u, { class: "d-d-inline-block" }, {
2135
+ default: I(() => [a.enableAltText ? (N(), O(l, {
2169
2136
  key: 0,
2170
2137
  padding: "small",
2171
2138
  "navigation-type": "arrow-keys",
@@ -2201,7 +2168,7 @@ function ki(e, t, n, r, i, a) {
2201
2168
  "onKeyup"
2202
2169
  ])]),
2203
2170
  _: 1
2204
- })) : (N(), D(o, {
2171
+ })) : (N(), O(o, {
2205
2172
  key: 1,
2206
2173
  text: a.badgeLabel,
2207
2174
  contenteditable: "false"
@@ -2209,7 +2176,7 @@ function ki(e, t, n, r, i, a) {
2209
2176
  _: 1
2210
2177
  });
2211
2178
  }
2212
- var Ai = /* @__PURE__ */ i(Oi, [["render", ki]]), ji = we.create({
2179
+ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
2213
2180
  name: "variable",
2214
2181
  group: "inline",
2215
2182
  inline: !0,
@@ -2222,7 +2189,7 @@ var Ai = /* @__PURE__ */ i(Oi, [["render", ki]]), ji = we.create({
2222
2189
  };
2223
2190
  },
2224
2191
  addNodeView() {
2225
- return C(Ai);
2192
+ return C(Ti);
2226
2193
  },
2227
2194
  addAttributes() {
2228
2195
  return {
@@ -2266,7 +2233,7 @@ var Ai = /* @__PURE__ */ i(Oi, [["render", ki]]), ji = we.create({
2266
2233
  }
2267
2234
  }) };
2268
2235
  }
2269
- }), Mi = {
2236
+ }), Di = {
2270
2237
  compatConfig: { MODE: 3 },
2271
2238
  name: "MentionSuggestion",
2272
2239
  components: {
@@ -2305,16 +2272,16 @@ var Ai = /* @__PURE__ */ i(Oi, [["render", ki]]), ji = we.create({
2305
2272
  return this.item.showDetails;
2306
2273
  }
2307
2274
  }
2308
- }, Ni = { class: "d-mention-suggestion__name" }, Pi = {
2275
+ }, Oi = { class: "d-mention-suggestion__name" }, ki = {
2309
2276
  key: 1,
2310
2277
  class: "d-mention-suggestion__divider"
2311
- }, Fi = {
2278
+ }, Ai = {
2312
2279
  key: 2,
2313
2280
  class: "d-mention-suggestion__status"
2314
2281
  };
2315
- function Ii(e, t, n, r, i, a) {
2282
+ function ji(e, t, n, r, i, a) {
2316
2283
  let o = P("dt-avatar"), s = P("dt-stack");
2317
- return N(), D(s, {
2284
+ return N(), O(s, {
2318
2285
  direction: "row",
2319
2286
  class: "d-mention-suggestion__container",
2320
2287
  gap: "400"
@@ -2336,22 +2303,22 @@ function Ii(e, t, n, r, i, a) {
2336
2303
  class: "d-mention-suggestion__details-container",
2337
2304
  gap: "100"
2338
2305
  }, {
2339
- default: I(() => [A("span", Ni, F(a.name), 1), a.showDetails ? (N(), D(s, {
2306
+ default: I(() => [j("span", Oi, F(a.name), 1), a.showDetails ? (N(), O(s, {
2340
2307
  key: 0,
2341
2308
  direction: "row",
2342
2309
  gap: "300",
2343
2310
  class: "d-label--sm-plain"
2344
2311
  }, {
2345
2312
  default: I(() => [
2346
- a.presenceText ? (N(), k("span", {
2313
+ a.presenceText ? (N(), A("span", {
2347
2314
  key: 0,
2348
2315
  class: le(["d-mention-suggestion__presence", [a.presenceFontColorClass]])
2349
- }, F(a.presenceText), 3)) : O("", !0),
2350
- a.status && a.presenceText ? (N(), k("div", Pi, " • ")) : O("", !0),
2351
- a.status ? (N(), k("div", Fi, F(a.status), 1)) : O("", !0)
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)
2352
2319
  ]),
2353
2320
  _: 1
2354
- })) : O("", !0)]),
2321
+ })) : k("", !0)]),
2355
2322
  _: 1
2356
2323
  })]),
2357
2324
  _: 1
@@ -2359,10 +2326,10 @@ function Ii(e, t, n, r, i, a) {
2359
2326
  }
2360
2327
  //#endregion
2361
2328
  //#region components/rich_text_editor/extensions/mentions/suggestion.js
2362
- var Li = {
2329
+ var Mi = {
2363
2330
  allowSpaces: !0,
2364
- render: Hr(/* @__PURE__ */ i(Mi, [["render", Ii]]), "mention")
2365
- }, Ri = {
2331
+ render: Lr(/* @__PURE__ */ i(Di, [["render", ji]]), "mention")
2332
+ }, Ni = {
2366
2333
  compatConfig: { MODE: 3 },
2367
2334
  name: "ChannelSuggestion",
2368
2335
  components: {
@@ -2378,28 +2345,28 @@ var Li = {
2378
2345
  return this.item.name;
2379
2346
  } }
2380
2347
  };
2381
- function zi(e, t, n, r, i, a) {
2348
+ function Pi(e, t, n, r, i, a) {
2382
2349
  let o = P("dt-icon-hash"), s = P("dt-icon-lock"), c = P("dt-stack");
2383
- return N(), D(c, {
2350
+ return N(), O(c, {
2384
2351
  direction: "row",
2385
2352
  gap: "400"
2386
2353
  }, {
2387
- default: I(() => [n.item.locked ? (N(), D(s, {
2354
+ default: I(() => [n.item.locked ? (N(), O(s, {
2388
2355
  key: 1,
2389
2356
  size: "300"
2390
- })) : (N(), D(o, {
2357
+ })) : (N(), O(o, {
2391
2358
  key: 0,
2392
2359
  size: "300"
2393
- })), A("span", null, F(a.name), 1)]),
2360
+ })), j("span", null, F(a.name), 1)]),
2394
2361
  _: 1
2395
2362
  });
2396
2363
  }
2397
2364
  //#endregion
2398
2365
  //#region components/rich_text_editor/extensions/channels/suggestion.js
2399
- var Bi = {
2366
+ var Fi = {
2400
2367
  allowSpaces: !0,
2401
- render: Hr(/* @__PURE__ */ i(Ri, [["render", zi]]), "channel")
2402
- }, Vi = {
2368
+ render: Lr(/* @__PURE__ */ i(Ni, [["render", Pi]]), "channel")
2369
+ }, Ii = {
2403
2370
  compatConfig: { MODE: 3 },
2404
2371
  name: "SlashCommandSuggestion",
2405
2372
  props: { item: {
@@ -2417,22 +2384,22 @@ var Bi = {
2417
2384
  return this.item.parametersExample;
2418
2385
  }
2419
2386
  }
2420
- }, Hi = { class: "d-body--md-compact" }, Ui = { key: 0 }, Wi = { class: "d-body--sm d-fc-tertiary" };
2421
- function Gi(e, t, n, r, i, a) {
2422
- return N(), k("div", null, [A("div", Hi, [A("span", null, "/" + F(a.command), 1), a.parametersExample ? (N(), k("span", Ui, F(a.parametersExample), 1)) : O("", !0)]), A("div", Wi, F(a.description), 1)]);
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)]);
2423
2390
  }
2424
2391
  //#endregion
2425
2392
  //#region components/rich_text_editor/extensions/slash_command/suggestion.js
2426
- var Ki = {
2393
+ var Vi = {
2427
2394
  allowSpaces: !0,
2428
2395
  startOfLine: !0,
2429
- render: Hr(/* @__PURE__ */ i(Vi, [["render", Gi]]), "slash-command")
2430
- }, qi = {
2396
+ render: Lr(/* @__PURE__ */ i(Ii, [["render", Bi]]), "slash-command")
2397
+ }, Hi = {
2431
2398
  compatConfig: { MODE: 3 },
2432
2399
  name: "DtRichTextEditor",
2433
2400
  components: {
2434
2401
  EditorContent: x,
2435
- BubbleMenu: dr,
2402
+ BubbleMenu: or,
2436
2403
  DtButton: m,
2437
2404
  DtStack: g
2438
2405
  },
@@ -2638,7 +2605,7 @@ var Ki = {
2638
2605
  We,
2639
2606
  Ge
2640
2607
  ];
2641
- e.push(this.useDivTags ? pi : Ke), this.allowBold && e.push(qe), this.allowBlockquote && e.push(Re), this.allowBulletList && (e.push(Je), e.push(Ye.extend({ renderText({ node: e }) {
2608
+ 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 }) {
2642
2609
  return e.textContent;
2643
2610
  } })), 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 }));
2644
2611
  let t = this, n = xe.create({ addKeyboardShortcuts() {
@@ -2662,36 +2629,36 @@ var Ki = {
2662
2629
  HTMLAttributes: { class: "d-link d-wb-break-all" },
2663
2630
  openOnClick: !1,
2664
2631
  autolink: !0,
2665
- protocols: ne
2666
- })), this.customLink && e.push(this.getExtension(ui, this.customLink)), this.mentionSuggestion) {
2632
+ protocols: E
2633
+ })), this.customLink && e.push(this.getExtension(ai, this.customLink)), this.mentionSuggestion) {
2667
2634
  let t = {
2668
2635
  ...this.mentionSuggestion,
2669
- ...Li
2636
+ ...Mi
2670
2637
  };
2671
- e.push(_i.configure({ suggestion: t }));
2638
+ e.push(fi.configure({ suggestion: t }));
2672
2639
  }
2673
2640
  if (this.channelSuggestion) {
2674
2641
  let t = {
2675
2642
  ...this.channelSuggestion,
2676
- ...Bi
2643
+ ...Fi
2677
2644
  };
2678
- e.push(xi.configure({ suggestion: t }));
2645
+ e.push(gi.configure({ suggestion: t }));
2679
2646
  }
2680
2647
  if (this.slashCommandSuggestion) {
2681
2648
  let t = {
2682
2649
  ...this.slashCommandSuggestion,
2683
- ...Ki
2650
+ ...Vi
2684
2651
  };
2685
- e.push(Ei.configure({
2652
+ e.push(xi.configure({
2686
2653
  suggestion: t,
2687
2654
  onSelectedCommand: (e) => {
2688
2655
  this.$emit("selected-command", e);
2689
2656
  }
2690
2657
  }));
2691
2658
  }
2692
- return this.allowVariable && e.push(ji.configure({ variableItems: this.variableItems })), e.push($r), e.push(nt.configure({ types: ["paragraph"] })), this.allowCode && e.push(Be), this.allowCodeblock && e.push(ze.extend({ renderText({ node: e }) {
2659
+ return this.allowVariable && e.push(Ei.configure({ variableItems: this.variableItems })), e.push(Jr), e.push(nt.configure({ types: ["paragraph"] })), this.allowCode && e.push(Be), this.allowCodeblock && e.push(ze.extend({ renderText({ node: e }) {
2693
2660
  return `\`\`\`\n${e.textContent}\n\`\`\``;
2694
- } }).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(di.configure({ resize: {
2661
+ } }).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(oi.configure({ resize: {
2695
2662
  enabled: this.allowImageResize,
2696
2663
  alwaysPreserveAspectRatio: !0
2697
2664
  } })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(ct.configure({
@@ -2700,7 +2667,7 @@ var Ki = {
2700
2667
  fontFamily: this.allowFontFamily,
2701
2668
  fontSize: this.allowFontSize,
2702
2669
  lineHeight: this.allowLineHeight
2703
- })), e.push(xr)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push(gr.configure({ resizable: !0 }), _r, br, yr, He), e;
2670
+ })), e.push(gr)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push(dr.configure({ resizable: !0 }), fr, hr, mr, He), e;
2704
2671
  },
2705
2672
  inputAttrs() {
2706
2673
  let e = {
@@ -2788,7 +2755,7 @@ var Ki = {
2788
2755
  let e = this.editor.getAttributes("link").href;
2789
2756
  window.open(e, "_blank");
2790
2757
  },
2791
- setLink(e, t, n, r = ne, i) {
2758
+ setLink(e, t, n, r = E, i) {
2792
2759
  if (!e) {
2793
2760
  this.removeLink();
2794
2761
  return;
@@ -2879,7 +2846,7 @@ var Ki = {
2879
2846
  this.$emit("html-input", n);
2880
2847
  let r = this.editor.getText({ blockSeparator: "\n" });
2881
2848
  this.$emit("text-input", r);
2882
- let i = re(t, this.extensions);
2849
+ let i = ne(t, this.extensions);
2883
2850
  this.$emit("markdown-input", i);
2884
2851
  },
2885
2852
  addEditorListeners() {
@@ -2907,7 +2874,7 @@ var Ki = {
2907
2874
  switch (this.outputFormat) {
2908
2875
  case "json": return this.editor.getJSON();
2909
2876
  case "html": return this.editor.getHTML();
2910
- case "markdown": return re(this.editor.getJSON(), this.extensions);
2877
+ case "markdown": return ne(this.editor.getJSON(), this.extensions);
2911
2878
  default: return this.editor.getText({ blockSeparator: "\n" });
2912
2879
  }
2913
2880
  },
@@ -2925,10 +2892,10 @@ var Ki = {
2925
2892
  this.editor.commands.focus();
2926
2893
  }
2927
2894
  }
2928
- }, Ji = { class: "d-popover__dialog" };
2929
- function Yi(e, t, n, r, i, a) {
2895
+ }, Ui = { class: "d-popover__dialog" };
2896
+ function Wi(e, t, n, r, i, a) {
2930
2897
  let o = P("dt-button"), s = P("dt-stack"), c = P("bubble-menu"), l = P("editor-content");
2931
- return N(), k("div", null, [i.editor && n.link && !n.hideLinkBubbleMenu ? (N(), D(c, {
2898
+ return N(), A("div", null, [i.editor && n.link && !n.hideLinkBubbleMenu ? (N(), O(c, {
2932
2899
  key: 0,
2933
2900
  editor: i.editor,
2934
2901
  "should-show": a.bubbleMenuShouldShow,
@@ -2936,7 +2903,7 @@ function Yi(e, t, n, r, i, a) {
2936
2903
  "append-to": i.appendTo,
2937
2904
  style: { visibility: "visible" }
2938
2905
  }, {
2939
- default: I(() => [A("div", Ji, [M(s, {
2906
+ default: I(() => [j("div", Ui, [M(s, {
2940
2907
  direction: "row",
2941
2908
  class: "d-rich-text-editor-bubble-menu__button-stack",
2942
2909
  gap: "0"
@@ -2947,7 +2914,7 @@ function Yi(e, t, n, r, i, a) {
2947
2914
  importance: "clear",
2948
2915
  onClick: a.editLink
2949
2916
  }, {
2950
- default: I(() => [j(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)]),
2917
+ default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)]),
2951
2918
  _: 1
2952
2919
  }, 8, ["onClick"]),
2953
2920
  M(o, {
@@ -2955,7 +2922,7 @@ function Yi(e, t, n, r, i, a) {
2955
2922
  importance: "clear",
2956
2923
  onClick: a.openLink
2957
2924
  }, {
2958
- default: I(() => [j(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)]),
2925
+ default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)]),
2959
2926
  _: 1
2960
2927
  }, 8, ["onClick"]),
2961
2928
  M(o, {
@@ -2963,7 +2930,7 @@ function Yi(e, t, n, r, i, a) {
2963
2930
  importance: "clear",
2964
2931
  onClick: a.removeLink
2965
2932
  }, {
2966
- default: I(() => [j(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)]),
2933
+ default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)]),
2967
2934
  _: 1
2968
2935
  }, 8, ["onClick"])
2969
2936
  ]),
@@ -2975,15 +2942,15 @@ function Yi(e, t, n, r, i, a) {
2975
2942
  "should-show",
2976
2943
  "options",
2977
2944
  "append-to"
2978
- ])) : O("", !0), M(l, se({
2945
+ ])) : k("", !0), M(l, se({
2979
2946
  ref: "editor",
2980
2947
  editor: i.editor,
2981
2948
  class: "d-rich-text-editor",
2982
2949
  "data-qa": "dt-rich-text-editor"
2983
2950
  }, a.attrs), null, 16, ["editor"])]);
2984
2951
  }
2985
- var Xi = /* @__PURE__ */ i(qi, [["render", Yi]]);
2952
+ var Gi = /* @__PURE__ */ i(Hi, [["render", Wi]]);
2986
2953
  //#endregion
2987
- export { Xi as t };
2954
+ export { Gi as t };
2988
2955
 
2989
- //# sourceMappingURL=rich_text_editor-CtCGNkSD.js.map
2956
+ //# sourceMappingURL=rich_text_editor-Ba67C4Uk.js.map