@pantograph/vue 0.29.2 → 0.29.4

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.
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as $, ref as v, createElementBlock as j, createCommentVNode as A, unref as n, openBlock as B, normalizeClass as E, createBlock as x, withModifiers as I, createVNode as g, Fragment as fe, renderList as Y, withCtx as O, createTextVNode as le, toDisplayString as J, h as _, useSlots as Q, createElementVNode as K, mergeProps as L, isRef as re, createSlots as ae, renderSlot as W, normalizeProps as Z, guardReactiveProps as ee, computed as G, normalizeStyle as Ce, onMounted as ye, onBeforeUnmount as he } from "vue";
2
2
  import { useVModel as oe, isEmptyElement as T, useFormInput as ge, useInputDataStates as ve, installComponent as N } from "@pantograph/utils-vue";
3
- import { _ as pe } from "../Avatar.vue_vue_type_style_index_0_lang-kRBRb-c7.js";
3
+ import { _ as pe } from "../Avatar.vue_vue_type_style_index_0_lang-BSPQHKch.js";
4
4
  import { _ as _e } from "../Badge.vue_vue_type_script_setup_true_lang-BvaT1pMA.js";
5
5
  import { cva as Be } from "class-variance-authority";
6
6
  import "../GraphicalObject/index.js";
7
7
  import "../Icon/index.js";
8
- import { getComponentOptions as M, normCls as h, getBemElement as C, getBemBlock as be, generateVariantClassList as Pe, getPxSize as Re, getComponentName as U } from "@pantograph/utils";
8
+ import { getComponentOptions as M, normCls as h, getBemElement as C, getBemBlock as be, generateVariantClassList as Re, getPxSize as Pe, getComponentName as U } from "@pantograph/utils";
9
9
  import { _ as z } from "../IconButton.vue_vue_type_script_setup_true_lang-DBDmWePu.js";
10
10
  import { _ as Se } from "../ActionButton.vue_vue_type_script_setup_true_lang-BKA6jQN0.js";
11
11
  import { UploadList as ke, UploadTrigger as xe } from "../Upload/index.js";
@@ -23,16 +23,18 @@ const Fe = /* @__PURE__ */ $({
23
23
  ...M("CommentActions"),
24
24
  __name: "CommentActions",
25
25
  setup(u) {
26
- const s = te(), t = v(), e = v(), p = () => {
26
+ const s = te(), t = v(), e = v(), c = () => {
27
27
  s.emit("openActions", e.value);
28
28
  }, i = () => {
29
29
  s.emit("openReaction", t.value);
30
30
  }, l = () => {
31
- s.emit("reply");
31
+ s.emit("reply", (a) => {
32
+ s.openReplies && (a !== void 0 ? s.openReplies.value = a : s.openReplies.value = !s.openReplies.value);
33
+ });
32
34
  };
33
- return (c, o) => n(s).props.hasReaction || n(s).props.hasEdit || n(s).props.hasDelete ? (B(), j("div", {
35
+ return (a, o) => n(s).props.hasReaction || n(s).props.hasEdit || n(s).props.hasDelete ? (B(), j("div", {
34
36
  key: 0,
35
- class: E(n(h)(n(C)(n(R), "actions"), n(s).props.actionsCls))
37
+ class: E(n(h)(n(C)(n(P), "actions"), n(s).props.actionsCls))
36
38
  }, [
37
39
  n(s).props.hasReply ? (B(), x(z, {
38
40
  key: 0,
@@ -64,7 +66,7 @@ const Fe = /* @__PURE__ */ $({
64
66
  ref: e,
65
67
  onPointerdown: o[1] || (o[1] = I(() => {
66
68
  }, ["stop"])),
67
- onClick: p
69
+ onClick: c
68
70
  }, null, 512)) : A("", !0)
69
71
  ], 2)) : A("", !0);
70
72
  }
@@ -74,19 +76,19 @@ const Fe = /* @__PURE__ */ $({
74
76
  setup(u) {
75
77
  const s = te(), t = v(), e = () => {
76
78
  s.emit("openReaction", t.value);
77
- }, p = (i) => {
79
+ }, c = (i) => {
78
80
  i && s.emit("reaction", i);
79
81
  };
80
82
  return (i, l) => {
81
- var c;
82
- return n(s).props.hasReaction && ((c = n(s).props.reactions) != null && c.some((o) => o.count && o.emoji)) ? (B(), j("div", {
83
+ var a;
84
+ return n(s).props.hasReaction && ((a = n(s).props.reactions) != null && a.some((o) => o.count && o.emoji)) ? (B(), j("div", {
83
85
  key: 0,
84
- class: E(n(h)(n(C)(n(R), "reactions"), n(s).props.reactionsCls))
86
+ class: E(n(h)(n(C)(n(P), "reactions"), n(s).props.reactionsCls))
85
87
  }, [
86
88
  (B(!0), j(fe, null, Y(n(s).props.reactions, (o) => (B(), x(Se, {
87
89
  key: o == null ? void 0 : o.emoji,
88
90
  active: o == null ? void 0 : o.active,
89
- onClick: (b) => p(o)
91
+ onClick: (b) => c(o)
90
92
  }, {
91
93
  default: O(() => [
92
94
  le(J(o == null ? void 0 : o.emoji) + " " + J(o == null ? void 0 : o.count), 1)
@@ -119,19 +121,19 @@ const Fe = /* @__PURE__ */ $({
119
121
  ref: s.fileListRef,
120
122
  listType: "card",
121
123
  fileListCls: h(
122
- C(R, "file_list"),
124
+ C(P, "file_list"),
123
125
  (e = s.props.uploadProps) == null ? void 0 : e.fileListCls
124
126
  )
125
127
  },
126
128
  s.slots
127
129
  );
128
130
  };
129
- return (e, p) => {
131
+ return (e, c) => {
130
132
  var i, l;
131
133
  return (l = (i = n(s).props.uploadProps) == null ? void 0 : i.fileList) != null && l.length ? (B(), x(t, { key: 0 })) : A("", !0);
132
134
  };
133
135
  }
134
- }), R = be("comment"), [te, de] = Te("Comment"), Le = /* @__PURE__ */ $({
136
+ }), P = be("comment"), [te, de] = Te("Comment"), Le = /* @__PURE__ */ $({
135
137
  ...M("Comment"),
136
138
  __name: "Comment",
137
139
  props: {
@@ -165,45 +167,45 @@ const Fe = /* @__PURE__ */ $({
165
167
  },
166
168
  emits: ["update:open", "openActions", "reaction", "reply", "openReaction"],
167
169
  setup(u, { emit: s }) {
168
- const t = u, e = Q(), p = s, i = oe(t, "open", p, {
170
+ const t = u, e = Q(), c = s, i = oe(t, "open", c, {
169
171
  passive: t.open === void 0
170
172
  }), l = () => {
171
173
  var f;
172
- let a;
174
+ let p;
173
175
  const y = (f = e.author) == null ? void 0 : f.call(e, {});
174
- return !T(y) ? a = y : a = t.author, a ? _(
176
+ return !T(y) ? p = y : p = t.author, p ? _(
175
177
  "div",
176
178
  {
177
- class: h(C(R, "author"), t.authorCls)
179
+ class: h(C(P, "author"), t.authorCls)
178
180
  },
179
- a
181
+ p
180
182
  ) : null;
181
- }, c = () => {
183
+ }, a = () => {
182
184
  var f;
183
- let a;
185
+ let p;
184
186
  const y = (f = e.datetime) == null ? void 0 : f.call(e, {});
185
- return !T(y) ? a = y : a = t.datetime, a ? _(
187
+ return !T(y) ? p = y : p = t.datetime, p ? _(
186
188
  "div",
187
189
  {
188
- class: h(C(R, "datetime"), t.datetimeCls)
190
+ class: h(C(P, "datetime"), t.datetimeCls)
189
191
  },
190
- a
192
+ p
191
193
  ) : null;
192
194
  }, o = () => {
193
- var f, P;
194
- const a = (f = e.header) == null ? void 0 : f.call(e, {}), y = !T(a);
195
+ var f, R;
196
+ const p = (f = e.header) == null ? void 0 : f.call(e, {}), y = !T(p);
195
197
  let m;
196
- if (y) m = a;
198
+ if (y) m = p;
197
199
  else {
198
200
  m = [];
199
- const F = (P = e.avatar) == null ? void 0 : P.call(e, {});
201
+ const F = (R = e.avatar) == null ? void 0 : R.call(e, {});
200
202
  !T(F) ? m.push(F) : t.avatar && m.push(_(pe, { ...t.avatarProps ?? {}, src: t.avatar }));
201
- const k = l(), D = c();
203
+ const k = l(), D = a();
202
204
  (k || D) && m.push(
203
205
  _(
204
206
  "div",
205
207
  {
206
- class: h(C(R, "header__content"), t.headerContentCls)
208
+ class: h(C(P, "header__content"), t.headerContentCls)
207
209
  },
208
210
  [k, D]
209
211
  )
@@ -211,28 +213,28 @@ const Fe = /* @__PURE__ */ $({
211
213
  }
212
214
  return m ? (m.push(_(Fe)), _(
213
215
  "div",
214
- { class: h(C(R, "header"), t.headerCls) },
216
+ { class: h(C(P, "header"), t.headerCls) },
215
217
  m
216
218
  )) : null;
217
219
  }, b = () => {
218
220
  var m;
219
- const a = (m = e.content) == null ? void 0 : m.call(e, {}), y = !T(a);
221
+ const p = (m = e.content) == null ? void 0 : m.call(e, {}), y = !T(p);
220
222
  if (y || t.content)
221
223
  return _(
222
224
  "div",
223
225
  {
224
- class: h(C(R, "content"), t.contentCls, "paragraph"),
226
+ class: h(C(P, "content"), t.contentCls, "paragraph"),
225
227
  innerHTML: y ? void 0 : t.content
226
228
  },
227
- y ? a : void 0
229
+ y ? p : void 0
228
230
  );
229
- }, d = C(R, "replies"), S = Be(d, {
231
+ }, d = C(P, "replies"), S = Be(d, {
230
232
  variants: {
231
- open: Pe("open", d)
233
+ open: Re("open", d)
232
234
  }
233
235
  }), V = () => {
234
- var P;
235
- const a = (P = e.replies) == null ? void 0 : P.call(e, {}), y = !T(a), m = () => {
236
+ var R;
237
+ const p = (R = e.replies) == null ? void 0 : R.call(e, {}), y = !T(p), m = () => {
236
238
  var k, D, H;
237
239
  const F = (k = e.repliesHeader) == null ? void 0 : k.call(e, { open: !!i.value }), r = [];
238
240
  if (!T(F))
@@ -297,7 +299,7 @@ const Fe = /* @__PURE__ */ $({
297
299
  {
298
300
  class: h(C(d, "content"), t.repliesContentCls)
299
301
  },
300
- a
302
+ p
301
303
  ),
302
304
  _("div", {
303
305
  class: C(d, "line")
@@ -318,16 +320,17 @@ const Fe = /* @__PURE__ */ $({
318
320
  ) : null;
319
321
  }, w = v();
320
322
  return de({
321
- emit: p,
323
+ openReplies: i,
324
+ emit: c,
322
325
  props: t,
323
326
  slots: e,
324
327
  fileListRef: w
325
- }), (a, y) => (B(), j("div", {
326
- class: E(n(h)(n(R), t.class))
328
+ }), (p, y) => (B(), j("div", {
329
+ class: E(n(h)(n(P), t.class))
327
330
  }, [
328
331
  g(o),
329
332
  K("div", {
330
- class: E(n(h)(n(C)(n(R), "body"), t.bodyCls))
333
+ class: E(n(h)(n(C)(n(P), "body"), t.bodyCls))
331
334
  }, [
332
335
  g(b),
333
336
  g(ce),
@@ -383,14 +386,14 @@ const Fe = /* @__PURE__ */ $({
383
386
  },
384
387
  emits: ["edit", "delete", "update:open"],
385
388
  setup(u, { emit: s }) {
386
- const t = u, e = s, p = () => {
389
+ const t = u, e = s, c = () => {
387
390
  e("edit"), l.value = !1;
388
391
  }, i = () => {
389
392
  e("delete"), l.value = !1;
390
393
  }, l = oe(t, "open", e, {
391
394
  passive: t.open === void 0
392
395
  });
393
- return (c, o) => (B(), x(n(Ee), L(t, {
396
+ return (a, o) => (B(), x(n(Ee), L(t, {
394
397
  open: n(l),
395
398
  "onUpdate:open": o[0] || (o[0] = (b) => re(l) ? l.value = b : null),
396
399
  placement: "bottom-end",
@@ -400,10 +403,10 @@ const Fe = /* @__PURE__ */ $({
400
403
  content: O(() => [
401
404
  g($e, { style: { width: "114px" } }, {
402
405
  default: O(() => [
403
- c.hasEdit ? (B(), x(ie, {
406
+ a.hasEdit ? (B(), x(ie, {
404
407
  key: "edit",
405
- title: c.editText,
406
- onClick: p
408
+ title: a.editText,
409
+ onClick: c
407
410
  }, {
408
411
  leading: O(({ iconSize: b }) => [
409
412
  g(X, {
@@ -413,9 +416,9 @@ const Fe = /* @__PURE__ */ $({
413
416
  ]),
414
417
  _: 1
415
418
  }, 8, ["title"])) : A("", !0),
416
- c.hasDelete ? (B(), x(ie, {
419
+ a.hasDelete ? (B(), x(ie, {
417
420
  key: "delete",
418
- title: c.deleteText,
421
+ title: a.deleteText,
419
422
  danger: "",
420
423
  onClick: i
421
424
  }, {
@@ -477,12 +480,12 @@ const Fe = /* @__PURE__ */ $({
477
480
  },
478
481
  emits: ["reaction", "update:open"],
479
482
  setup(u, { emit: s }) {
480
- const t = u, e = s, p = (l) => {
483
+ const t = u, e = s, c = (l) => {
481
484
  e("reaction", l.value), i.value = !1;
482
485
  }, i = oe(t, "open", e, {
483
486
  passive: t.open === void 0
484
487
  });
485
- return (l, c) => (B(), x(n(Me), L(t, {
488
+ return (l, a) => (B(), x(n(Me), L(t, {
486
489
  noTrigger: "",
487
490
  hideClear: "",
488
491
  hideGroup: "",
@@ -496,9 +499,9 @@ const Fe = /* @__PURE__ */ $({
496
499
  placement: "bottom-end",
497
500
  visibleColorPickers: [],
498
501
  noModel: "",
499
- onSelect: p,
502
+ onSelect: c,
500
503
  open: n(i),
501
- "onUpdate:open": c[0] || (c[0] = (o) => re(i) ? i.value = o : null)
504
+ "onUpdate:open": a[0] || (a[0] = (o) => re(i) ? i.value = o : null)
502
505
  }), null, 16, ["popoverProps", "open"]));
503
506
  }
504
507
  }), je = /* @__PURE__ */ $({
@@ -594,14 +597,14 @@ const Fe = /* @__PURE__ */ $({
594
597
  },
595
598
  emits: ["mention"],
596
599
  setup(u, { expose: s, emit: t }) {
597
- const e = u, p = t, i = Q(), l = (o, b, d) => {
598
- p("mention", o, d);
599
- }, c = v();
600
+ const e = u, c = t, i = Q(), l = (o, b, d) => {
601
+ c("mention", o, d);
602
+ }, a = v();
600
603
  return s({
601
- comboboxRef: c
604
+ comboboxRef: a
602
605
  }), (o, b) => (B(), x(n(we), L({
603
606
  ref_key: "comboboxRef",
604
- ref: c
607
+ ref: a
605
608
  }, e, {
606
609
  modelValue: "",
607
610
  onSelect: l,
@@ -632,30 +635,30 @@ const Fe = /* @__PURE__ */ $({
632
635
  },
633
636
  emits: ["openReaction", "openMention", "blur", "focus", "mention", "submit"],
634
637
  setup(u, { emit: s }) {
635
- const t = Q(), e = u, p = s, i = C(R, "editor"), l = v(), c = () => {
636
- p("openReaction", l.value);
638
+ const t = Q(), e = u, c = s, i = C(P, "editor"), l = v(), a = () => {
639
+ c("openReaction", l.value);
637
640
  }, o = v(), b = () => {
638
- p("openMention", o.value);
641
+ c("openMention", o.value);
639
642
  }, { getDisabled: d } = ge(), { rootBindings: S, inputBindings: V } = ve({
640
643
  getDisabled: () => d.value,
641
- emit: p
642
- }), w = () => p("submit"), a = G(() => Re(e.maxHeight, !0)), y = v(), m = (f) => {
643
- var P;
644
- (P = y.value) != null && P.addFiles && f.length && y.value.addFiles(f);
644
+ emit: c
645
+ }), w = () => c("submit"), p = G(() => Pe(e.maxHeight, !0)), y = v(), m = (f) => {
646
+ var R;
647
+ (R = y.value) != null && R.addFiles && f.length && y.value.addFiles(f);
645
648
  };
646
649
  return de({
647
- emit: p,
650
+ emit: c,
648
651
  props: e,
649
652
  slots: t,
650
653
  fileListRef: y
651
- }), (f, P) => (B(), j("div", L({
654
+ }), (f, R) => (B(), j("div", L({
652
655
  class: n(h)(n(i), e.class)
653
656
  }, n(S)), [
654
657
  g(Ae, {
655
658
  overlay: !1,
656
659
  hasMask: !1,
657
660
  class: E(n(h)(n(C)(n(i), "editor"), "paragraph", e.editorCls)),
658
- style: Ce({ maxHeight: a.value })
661
+ style: Ce({ maxHeight: p.value })
659
662
  }, {
660
663
  default: O(() => [
661
664
  W(f.$slots, "default", Z(ee(n(V))))
@@ -676,7 +679,7 @@ const Fe = /* @__PURE__ */ $({
676
679
  type: "ghost",
677
680
  ref_key: "mentionRef",
678
681
  ref: o,
679
- onPointerdown: P[0] || (P[0] = I(() => {
682
+ onPointerdown: R[0] || (R[0] = I(() => {
680
683
  }, ["stop"])),
681
684
  onClick: b
682
685
  }, null, 512),
@@ -700,9 +703,9 @@ const Fe = /* @__PURE__ */ $({
700
703
  type: "ghost",
701
704
  ref_key: "reactionRef",
702
705
  ref: l,
703
- onPointerdown: P[1] || (P[1] = I(() => {
706
+ onPointerdown: R[1] || (R[1] = I(() => {
704
707
  }, ["stop"])),
705
- onClick: c
708
+ onClick: a
706
709
  }, null, 512)
707
710
  ], 2),
708
711
  g(z, {
@@ -728,21 +731,21 @@ const Fe = /* @__PURE__ */ $({
728
731
  },
729
732
  emits: ["add"],
730
733
  setup(u, { emit: s }) {
731
- const t = Q(), e = u, p = s, i = C(R, "trigger"), l = (o) => {
732
- !e.ignoeShortcut && o.code === "KeyC" && o.altKey && c(o);
734
+ const t = Q(), e = u, c = s, i = C(P, "trigger"), l = (o) => {
735
+ !e.ignoeShortcut && o.code === "KeyC" && o.altKey && a(o);
733
736
  };
734
737
  ye(() => {
735
738
  e.withShortcut && addEventListener("keyup", l);
736
739
  }), he(() => {
737
740
  e.withShortcut && removeEventListener("keyup", l);
738
741
  }), e.withShortcut;
739
- const c = (o) => p("add", o);
742
+ const a = (o) => c("add", o);
740
743
  return (o, b) => (B(), j("div", {
741
744
  class: E(n(h)(n(i), e.class)),
742
745
  tabindex: o.disabled ? -1 : 0,
743
746
  disabled: o.disabled ? "" : void 0,
744
- onPointerdown: I(c, ["stop"]),
745
- onKeyup: I(c, ["stop"])
747
+ onPointerdown: I(a, ["stop"]),
748
+ onKeyup: I(a, ["stop"])
746
749
  }, [
747
750
  g(pe, L(o.avatarProps ?? {}, {
748
751
  size: "sm",
@@ -773,9 +776,9 @@ const Fe = /* @__PURE__ */ $({
773
776
  ], 42, Ue));
774
777
  }
775
778
  }), fo = N(Le, U("Comment")), Co = N(Ve, U("CommentAction")), yo = N(He, U("CommentReaction")), ho = N(je, U("CommentMention")), go = N(Ne, U("CommentEditor")), vo = N(Ge, U("CommentTrigger")), _o = (u) => {
776
- const s = v(!1), t = v(), e = v(!1), p = (r, k = !1) => {
779
+ const s = v(!1), t = v(), e = v(!1), c = (r, k = !1) => {
777
780
  s.value = !0, e.value = k, t.value = r;
778
- }, i = v(!1), l = v(), c = (r) => {
781
+ }, i = v(!1), l = v(), a = (r) => {
779
782
  i.value = !0, l.value = r;
780
783
  }, o = G(() => ({
781
784
  open: s.value,
@@ -799,7 +802,7 @@ const Fe = /* @__PURE__ */ $({
799
802
  open: i.value,
800
803
  reference: l.value,
801
804
  "onUpdate:open": (r) => i.value = r
802
- })), d = v(!1), S = v(), V = v(), w = v(), a = v(!1), y = G(() => ({
805
+ })), d = v(!1), S = v(), V = v(), w = v(), p = v(!1), y = G(() => ({
803
806
  ref: V,
804
807
  open: d.value,
805
808
  "onUpdate:open": (r) => d.value = r,
@@ -808,19 +811,19 @@ const Fe = /* @__PURE__ */ $({
808
811
  reference: w.value,
809
812
  disableOutsidePointerEvents: !1,
810
813
  resetSearchTermOnBlur: !0,
811
- headerSearch: a.value,
814
+ headerSearch: p.value,
812
815
  onPointerDownOutside: f,
813
816
  onEscapeKeyDown: f
814
817
  })), m = (r) => {
815
- r && (w.value = { getBoundingClientRect: r }, d.value = !0, a.value = !1);
818
+ r && (w.value = { getBoundingClientRect: r }, d.value = !0, p.value = !1);
816
819
  }, f = () => {
817
820
  w.value = void 0, d.value = !1, S.value = void 0;
818
- }, P = (r) => {
821
+ }, R = (r) => {
819
822
  S.value = r;
820
823
  }, F = G(() => ({
821
- onOpenReaction: (r) => p(r, !0),
824
+ onOpenReaction: (r) => c(r, !0),
822
825
  onOpenMention: (r) => {
823
- r && (w.value = r, d.value = !0, a.value = !0);
826
+ r && (w.value = r, d.value = !0, p.value = !0);
824
827
  }
825
828
  }));
826
829
  return {
@@ -829,11 +832,11 @@ const Fe = /* @__PURE__ */ $({
829
832
  actionBinding: b,
830
833
  editorBinding: F,
831
834
  mentionBinding: y,
832
- openActions: c,
833
- openReaction: p,
835
+ openActions: a,
836
+ openReaction: c,
834
837
  openMentionInEditor: m,
835
838
  closeMentionInEditor: f,
836
- updateMentionQuery: P
839
+ updateMentionQuery: R
837
840
  };
838
841
  };
839
842
  export {
@@ -849,7 +852,7 @@ export {
849
852
  yo as CommentReactionPlugin,
850
853
  Ge as CommentTrigger,
851
854
  vo as CommentTriggerPlugin,
852
- R as commentPrefix,
855
+ P as commentPrefix,
853
856
  te as injectCommentContext,
854
857
  de as provideCommentContext,
855
858
  _o as useComment
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("@pantograph/utils-vue"),A=require("../Avatar.vue_vue_type_style_index_0_lang-D2zI9dKd.js"),K=require("../Badge.vue_vue_type_script_setup_true_lang-BFQCx53R.js"),W=require("class-variance-authority");require("../GraphicalObject/index.umd.cjs");require("../Icon/index.umd.cjs");const o=require("@pantograph/utils"),E=require("../IconButton.vue_vue_type_script_setup_true_lang-CeH-nxZ6.js"),Q=require("../ActionButton.vue_vue_type_script_setup_true_lang-BhI55sWu.js"),D=require("../Upload/index.umd.cjs"),J=require("reka-ui"),X=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-DuCrET7F.js"),T=require("../Icon.vue_vue_type_style_index_0_lang-D35DGfhm.js"),Y=require("../index-CXAXCAp4.js"),O=require("../MenuItem.vue_vue_type_style_index_0_lang-DT3IAkAQ.js"),Z=require("../GOPicker/index.umd.cjs"),ee=require("../Combobox/index.umd.cjs"),te=require("../Divider.vue_vue_type_style_index_0_lang-D3wrVsBd.js"),oe=require("../ScrollContainer.vue_vue_type_style_index_0_lang-Br7-ZHr3.js"),ne=require("../Shortcut.vue_vue_type_style_index_0_lang-BfPJ-C7d.js"),re=e.defineComponent({...o.getComponentOptions("CommentActions"),__name:"CommentActions",setup(d){const s=V(),r=e.ref(),t=e.ref(),p=()=>{s.emit("openActions",t.value)},l=()=>{s.emit("openReaction",r.value)},i=()=>{s.emit("reply")};return(u,n)=>e.unref(s).props.hasReaction||e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(v),"actions"),e.unref(s).props.actionsCls))},[e.unref(s).props.hasReply?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,icon:"tabler:corner-up-left",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:r,flipOnDir:"rtl",onClick:i},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasReaction?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:r,onPointerdown:n[0]||(n[0]=e.withModifiers(()=>{},["stop"])),onClick:l},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createBlock(E._sfc_main,{key:2,icon:"tabler:dots-vertical",color:"neutral",type:"ghost",ref_key:"actionRef",ref:t,onPointerdown:n[1]||(n[1]=e.withModifiers(()=>{},["stop"])),onClick:p},null,512)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),se=e.defineComponent({...o.getComponentOptions("CommentReactions"),__name:"CommentReactions",setup(d){const s=V(),r=e.ref(),t=()=>{s.emit("openReaction",r.value)},p=l=>{l&&s.emit("reaction",l)};return(l,i)=>{var u;return e.unref(s).props.hasReaction&&((u=e.unref(s).props.reactions)!=null&&u.some(n=>n.count&&n.emoji))?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(v),"reactions"),e.unref(s).props.reactionsCls))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).props.reactions,n=>(e.openBlock(),e.createBlock(Q._sfc_main,{key:n==null?void 0:n.emoji,active:n==null?void 0:n.active,onClick:y=>p(n)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n==null?void 0:n.emoji)+" "+e.toDisplayString(n==null?void 0:n.count),1)]),_:2},1032,["active","onClick"]))),128)),e.createVNode(E._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"outline",ref_key:"reactionRef",ref:r,onPointerdown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onClick:t},null,512)],2)):e.createCommentVNode("",!0)}}}),I=e.defineComponent({...o.getComponentOptions("CommentFileList"),__name:"CommentFileList",setup(d){const s=V(),r=()=>{var t;return e.h(D.UploadList,{...s.props.uploadProps??{},ref:s.fileListRef,listType:"card",fileListCls:o.normCls(o.getBemElement(v,"file_list"),(t=s.props.uploadProps)==null?void 0:t.fileListCls)},s.slots)};return(t,p)=>{var l,i;return(i=(l=e.unref(s).props.uploadProps)==null?void 0:l.fileList)!=null&&i.length?(e.openBlock(),e.createBlock(r,{key:0})):e.createCommentVNode("",!0)}}}),v=o.getBemBlock("comment"),[V,w]=J.createContext("Comment"),q=e.defineComponent({...o.getComponentOptions("Comment"),__name:"Comment",props:{class:{},headerCls:{},actionsCls:{},bodyCls:{},datetimeCls:{},uploadProps:{},contentCls:{},authorCls:{},repliesCls:{},headerContentCls:{},reactionsCls:{},repliesHeaderCls:{},repliesTitleCls:{},repliesContentCls:{},author:{},avatar:{},content:{},datetime:{},repliesCount:{},repliesTitle:{default:"Replies"},avatarProps:{},open:{type:Boolean,default:void 0},hasReaction:{type:Boolean,default:!0},hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},hasReply:{type:Boolean,default:!0},reactions:{}},emits:["update:open","openActions","reaction","reply","openReaction"],setup(d,{emit:s}){const r=d,t=e.useSlots(),p=s,l=h.useVModel(r,"open",p,{passive:r.open===void 0}),i=()=>{var C;let c;const g=(C=t.author)==null?void 0:C.call(t,{});return!h.isEmptyElement(g)?c=g:c=r.author,c?e.h("div",{class:o.normCls(o.getBemElement(v,"author"),r.authorCls)},c):null},u=()=>{var C;let c;const g=(C=t.datetime)==null?void 0:C.call(t,{});return!h.isEmptyElement(g)?c=g:c=r.datetime,c?e.h("div",{class:o.normCls(o.getBemElement(v,"datetime"),r.datetimeCls)},c):null},n=()=>{var C,_;const c=(C=t.header)==null?void 0:C.call(t,{}),g=!h.isEmptyElement(c);let f;if(g)f=c;else{f=[];const S=(_=t.avatar)==null?void 0:_.call(t,{});!h.isEmptyElement(S)?f.push(S):r.avatar&&f.push(e.h(A._sfc_main,{...r.avatarProps??{},src:r.avatar}));const P=i(),k=u();(P||k)&&f.push(e.h("div",{class:o.normCls(o.getBemElement(v,"header__content"),r.headerContentCls)},[P,k])),f.length||(f=void 0)}return f?(f.push(e.h(re)),e.h("div",{class:o.normCls(o.getBemElement(v,"header"),r.headerCls)},f)):null},y=()=>{var f;const c=(f=t.content)==null?void 0:f.call(t,{}),g=!h.isEmptyElement(c);if(g||r.content)return e.h("div",{class:o.normCls(o.getBemElement(v,"content"),r.contentCls,"paragraph"),innerHTML:g?void 0:r.content},g?c:void 0)},m=o.getBemElement(v,"replies"),B=W.cva(m,{variants:{open:o.generateVariantClassList("open",m)}}),R=()=>{var _;const c=(_=t.replies)==null?void 0:_.call(t,{}),g=!h.isEmptyElement(c),f=()=>{var P,k,x;const S=(P=t.repliesHeader)==null?void 0:P.call(t,{open:!!l.value}),a=[];if(!h.isEmptyElement(S))a.push(S);else{a.push(e.h(X._sfc_main,{size:"xsm",bg:"transparent",br:"transparent"},{default:()=>e.h(T._sfc_main,{icon:"tabler:chevron-down",class:o.getBemElement(m,"icon"),size:"2xsm"})}));const M=(k=t.repliesCount)==null?void 0:k.call(t,{}),U=!h.isEmptyElement(M),z=(x=t.repliesTitle)==null?void 0:x.call(t,{}),G=!h.isEmptyElement(z);let N;G?N=z:N=r.repliesTitle,a.push(e.h("div",{class:o.normCls(o.getBemElement(m,"title"),r.repliesTitleCls)},N)),(U||r.repliesCount)&&a.push(e.h(K._sfc_main,{color:"primary-subtle",text:r.repliesCount,size:"xsm"},{text:()=>M}))}return e.h("div",{class:o.normCls(o.getBemElement(m,"header"),r.repliesHeaderCls),onClick:()=>{l.value=!l.value}},a)},C=()=>{if(l.value)return[e.h("div",{class:o.normCls(o.getBemElement(m,"content"),r.repliesContentCls)},c),e.h("div",{class:o.getBemElement(m,"line")})]};return g?e.h("div",{class:o.normCls(B({open:!!l.value}),r.repliesCls)},[f(),C()]):null},b=e.ref();return w({emit:p,props:r,slots:t,fileListRef:b}),(c,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(v),r.class))},[e.createVNode(n),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(v),"body"),r.bodyCls))},[e.createVNode(y),e.createVNode(I),e.createVNode(se),e.createVNode(R)],2)],2))}}),L=e.defineComponent({...o.getComponentOptions("CommentAction"),__name:"CommentAction",props:{hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},editText:{default:"Edit"},deleteText:{default:"Delete"},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},modal:{type:Boolean},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},sideOffset:{},sideFlip:{type:Boolean},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},class:{},containerCls:{},containerClass:{},size:{},to:{},placement:{},reversePlacementOnDir:{},autoFocusInside:{type:Boolean},noPadding:{type:Boolean},zIndex:{},containerStyle:{},containerProps:{},useReferenceAttribute:{type:Boolean},noTrigger:{type:Boolean}},emits:["edit","delete","update:open"],setup(d,{emit:s}){const r=d,t=s,p=()=>{t("edit"),i.value=!1},l=()=>{t("delete"),i.value=!1},i=h.useVModel(r,"open",t,{passive:r.open===void 0});return(u,n)=>(e.openBlock(),e.createBlock(e.unref(Y._sfc_main),e.mergeProps(r,{open:e.unref(i),"onUpdate:open":n[0]||(n[0]=y=>e.isRef(i)?i.value=y:null),placement:"bottom-end",sideOffset:3,openDelay:0}),{content:e.withCtx(()=>[e.createVNode(O._sfc_main,{style:{width:"114px"}},{default:e.withCtx(()=>[u.hasEdit?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"edit",title:u.editText,onClick:p},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(T._sfc_main,{icon:"tabler:edit",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0),u.hasDelete?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"delete",title:u.deleteText,danger:"",onClick:l},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(T._sfc_main,{icon:"tabler:trash",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1})]),_:1},16,["open"]))}}),F=e.defineComponent({...o.getComponentOptions("CommentReaction"),__name:"CommentReaction",props:{reference:{},open:{type:Boolean,default:void 0},icons:{},emojis:{},group:{},modelValue:{},defaultValue:{},visibleTabs:{},noTrigger:{type:Boolean},noModel:{type:Boolean},hideClear:{type:Boolean},hideColor:{type:Boolean},hideGroup:{type:Boolean},hideIcons:{type:Boolean},hideEmojis:{type:Boolean},hideSearch:{type:Boolean},hideRandom:{type:Boolean},disabled:{type:Boolean},borderless:{type:Boolean},popoverProps:{},colorPopoverProps:{},fgColorSwatchGroupProps:{},bgColorSwatchGroupProps:{},brColorSwatchGroupProps:{},visibleColorPickers:{},contentCls:{},headerCls:{},groupCls:{},searchCls:{},colorsCls:{},emptyCls:{},gridCls:{},scrollContainerProps:{},size:{},id:{},resetColorsOnChangeType:{}},emits:["reaction","update:open"],setup(d,{emit:s}){const r=d,t=s,p=i=>{t("reaction",i.value),l.value=!1},l=h.useVModel(r,"open",t,{passive:r.open===void 0});return(i,u)=>(e.openBlock(),e.createBlock(e.unref(Z.default),e.mergeProps(r,{noTrigger:"",hideClear:"",hideGroup:"",hideIcons:"",hideRandom:"",group:"emoji",popoverProps:{...i.popoverProps??{},reference:i.reference},placement:"bottom-end",visibleColorPickers:[],noModel:"",onSelect:p,open:e.unref(l),"onUpdate:open":u[0]||(u[0]=n=>e.isRef(l)?l.value=n:null)}),null,16,["popoverProps","open"]))}}),j=e.defineComponent({...o.getComponentOptions("CommentMention"),__name:"CommentMention",props:{modelValue:{},defaultValue:{},multiple:{type:Boolean},disabled:{type:Boolean},highlightOnHover:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},size:{},status:{},noValueOnPlaceholder:{type:Boolean},zIndex:{},checkbox:{type:Boolean},tagRenderMode:{},getTagProps:{type:Function},tree:{type:Boolean},treeProps:{},contentFit:{type:Boolean},wrapped:{type:Boolean},sortSelectedItems:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},trailingIcon:{type:[String,Boolean]},selectedItemIconAsTrailingIcon:{type:Boolean},maxCount:{},to:{type:[String,Function]},placeholder:{},indicatorIcon:{},options:{},getDisabled:{type:[String,Number,Function]},getLabel:{},getDescription:{},getValue:{},getNoCheckbox:{type:[String,Number,Function]},getSingle:{type:[String,Number,Function]},getClear:{type:[String,Number,Function]},getOptions:{type:[String,Number,Function]},getIcon:{},loading:{type:Boolean},skeletonProps:{},loadingRowCount:{},lazyLoading:{type:Boolean},bordered:{type:Boolean},clearOnChangeMultiple:{type:Boolean},triggerCls:{},triggerLeadingCls:{},triggerContentCls:{},triggerContentPlaceholderCls:{},triggerContentValueCls:{},triggerTrailingCls:{},itemLeadingCls:{},optionCls:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean},popupHeight:{},popupWidth:{},minWidth:{},search:{},filterOptions:{},expandedKeys:{},headerSearch:{type:Boolean},headerSearchInputProps:{},virtual:{type:Boolean},showTriggerTagOnOption:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},getMenuItemProps:{type:[Function,Object]},placement:{},containerProps:{},reversePlacementOnDir:{},open:{type:Boolean},defaultOpen:{type:Boolean},sideOffset:{},alignOffset:{},reference:{},prioritizePosition:{type:Boolean},avoidCollisions:{type:Boolean},dir:{},noTrigger:{type:Boolean}},emits:["mention"],setup(d,{expose:s,emit:r}){const t=d,p=r,l=e.useSlots(),i=(n,y,m)=>{p("mention",n,m)},u=e.ref();return s({comboboxRef:u}),(n,y)=>(e.openBlock(),e.createBlock(e.unref(ee.Combobox),e.mergeProps({ref_key:"comboboxRef",ref:u},t,{modelValue:"",onSelect:i,noTrigger:"",popupWidth:200}),e.createSlots({_:2},[e.renderList(Object.keys(l),m=>({name:m,fn:e.withCtx(B=>[e.renderSlot(n.$slots,m,e.normalizeProps(e.guardReactiveProps(B)))])}))]),1040))}}),H=e.defineComponent({...o.getComponentOptions("CommentEditor"),__name:"CommentEditor",props:{class:{},actionsCls:{},editorCls:{},footerCls:{},disabled:{type:Boolean,default:void 0},isEmpty:{type:Boolean},mentionsReference:{},uploadProps:{},maxHeight:{default:100}},emits:["openReaction","openMention","blur","focus","mention","submit"],setup(d,{emit:s}){const r=e.useSlots(),t=d,p=s,l=o.getBemElement(v,"editor"),i=e.ref(),u=()=>{p("openReaction",i.value)},n=e.ref(),y=()=>{p("openMention",n.value)},{getDisabled:m}=h.useFormInput(),{rootBindings:B,inputBindings:R}=h.useInputDataStates({getDisabled:()=>m.value,emit:p}),b=()=>p("submit"),c=e.computed(()=>o.getPxSize(t.maxHeight,!0)),g=e.ref(),f=C=>{var _;(_=g.value)!=null&&_.addFiles&&C.length&&g.value.addFiles(C)};return w({emit:p,props:t,slots:r,fileListRef:g}),(C,_)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(o.normCls)(e.unref(l),t.class)},e.unref(B)),[e.createVNode(oe._sfc_main,{overlay:!1,hasMask:!1,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(l),"editor"),"paragraph",t.editorCls)),style:e.normalizeStyle({maxHeight:c.value})},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default",e.normalizeProps(e.guardReactiveProps(e.unref(R))))]),_:3},8,["class","style"]),e.createVNode(I,e.mergeProps(C.uploadProps,{ref:"uploadRef"}),null,16),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(l),"footer"),t.footerCls))},[e.createVNode(te._sfc_main),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(l),"actions"),t.actionsCls))},[e.createVNode(E._sfc_main,{icon:"tabler:at",color:"neutral",type:"ghost",ref_key:"mentionRef",ref:n,onPointerdown:_[0]||(_[0]=e.withModifiers(()=>{},["stop"])),onClick:y},null,512),e.createVNode(D.UploadTrigger,{accept:"image/*",multiple:"",onAddFiles:f},{default:e.withCtx(()=>[e.createVNode(E._sfc_main,{icon:"tabler:paperclip",color:"neutral",type:"ghost"})]),_:1}),e.createVNode(E._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:i,onPointerdown:_[1]||(_[1]=e.withModifiers(()=>{},["stop"])),onClick:u},null,512)],2),e.createVNode(E._sfc_main,{disabled:C.isEmpty,icon:"tabler:arrow-up",onClick:b},null,8,["disabled"])],2)],16))}}),le=["tabindex","disabled"],$=e.defineComponent({...o.getComponentOptions("CommentTrigger"),__name:"CommentTrigger",props:{class:{},text:{default:"Add a Comment or type @ to Mention..."},src:{},withShortcut:{type:Boolean},ignoeShortcut:{type:Boolean},disabled:{type:Boolean},avatarProps:{},shortcutProps:{}},emits:["add"],setup(d,{emit:s}){const r=e.useSlots(),t=d,p=s,l=o.getBemElement(v,"trigger"),i=n=>{!t.ignoeShortcut&&n.code==="KeyC"&&n.altKey&&u(n)};e.onMounted(()=>{t.withShortcut&&addEventListener("keyup",i)}),e.onBeforeUnmount(()=>{t.withShortcut&&removeEventListener("keyup",i)}),t.withShortcut;const u=n=>p("add",n);return(n,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(l),t.class)),tabindex:n.disabled?-1:0,disabled:n.disabled?"":void 0,onPointerdown:e.withModifiers(u,["stop"]),onKeyup:e.withModifiers(u,["stop"])},[e.createVNode(A._sfc_main,e.mergeProps(n.avatarProps??{},{size:"sm",src:n.src}),e.createSlots({_:2},[e.renderList(Object.keys(r),m=>({name:m,fn:e.withCtx(B=>[e.renderSlot(n.$slots,m,e.normalizeProps(e.guardReactiveProps(B)))])}))]),1040,["src"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(l),"text"))},[e.renderSlot(n.$slots,"text",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2),e.createVNode(ne._sfc_main,e.mergeProps(n.shortcutProps??{},{items:[{text:"Alt"},{text:"C"}]}),null,16)],42,le))}}),ie=h.installComponent(q,o.getComponentName("Comment")),ae=h.installComponent(L,o.getComponentName("CommentAction")),ce=h.installComponent(F,o.getComponentName("CommentReaction")),pe=h.installComponent(j,o.getComponentName("CommentMention")),ue=h.installComponent(H,o.getComponentName("CommentEditor")),me=h.installComponent($,o.getComponentName("CommentTrigger")),de=d=>{const s=e.ref(!1),r=e.ref(),t=e.ref(!1),p=(a,P=!1)=>{s.value=!0,t.value=P,r.value=a},l=e.ref(!1),i=e.ref(),u=a=>{l.value=!0,i.value=a},n=e.computed(()=>({open:s.value,reference:r.value,"onUpdate:open":a=>s.value=a,onReaction:a=>{var P,k;if(t.value)try{(P=d.addEmoji)==null||P.call(d,a)}catch(x){console.error("error on reaction ===>",x)}try{(k=d.onReaction)==null||k.call(d,a)}catch(x){console.error("error on reaction ===>",x)}}})),y=e.computed(()=>({open:l.value,reference:i.value,"onUpdate:open":a=>l.value=a})),m=e.ref(!1),B=e.ref(),R=e.ref(),b=e.ref(),c=e.ref(!1),g=e.computed(()=>({ref:R,open:m.value,"onUpdate:open":a=>m.value=a,search:B.value,"onUpdate:search":a=>B.value=a,reference:b.value,disableOutsidePointerEvents:!1,resetSearchTermOnBlur:!0,headerSearch:c.value,onPointerDownOutside:C,onEscapeKeyDown:C})),f=a=>{a&&(b.value={getBoundingClientRect:a},m.value=!0,c.value=!1)},C=()=>{b.value=void 0,m.value=!1,B.value=void 0},_=a=>{B.value=a},S=e.computed(()=>({onOpenReaction:a=>p(a,!0),onOpenMention:a=>{a&&(b.value=a,m.value=!0,c.value=!0)}}));return{forwardRefMention:R,reactionBinding:n,actionBinding:y,editorBinding:S,mentionBinding:g,openActions:u,openReaction:p,openMentionInEditor:f,closeMentionInEditor:C,updateMentionQuery:_}};exports.Comment=q;exports.CommentAction=L;exports.CommentActionPlugin=ae;exports.CommentEditor=H;exports.CommentEditorPlugin=ue;exports.CommentMention=j;exports.CommentMentionPlugin=pe;exports.CommentPlugin=ie;exports.CommentReaction=F;exports.CommentReactionPlugin=ce;exports.CommentTrigger=$;exports.CommentTriggerPlugin=me;exports.commentPrefix=v;exports.injectCommentContext=V;exports.provideCommentContext=w;exports.useComment=de;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("@pantograph/utils-vue"),A=require("../Avatar.vue_vue_type_style_index_0_lang-D2o9rP-R.js"),K=require("../Badge.vue_vue_type_script_setup_true_lang-BFQCx53R.js"),W=require("class-variance-authority");require("../GraphicalObject/index.umd.cjs");require("../Icon/index.umd.cjs");const o=require("@pantograph/utils"),E=require("../IconButton.vue_vue_type_script_setup_true_lang-CeH-nxZ6.js"),Q=require("../ActionButton.vue_vue_type_script_setup_true_lang-BhI55sWu.js"),D=require("../Upload/index.umd.cjs"),J=require("reka-ui"),X=require("../GraphicalObject.vue_vue_type_script_setup_true_lang-DuCrET7F.js"),T=require("../Icon.vue_vue_type_style_index_0_lang-D35DGfhm.js"),Y=require("../index-CXAXCAp4.js"),O=require("../MenuItem.vue_vue_type_style_index_0_lang-DT3IAkAQ.js"),Z=require("../GOPicker/index.umd.cjs"),ee=require("../Combobox/index.umd.cjs"),te=require("../Divider.vue_vue_type_style_index_0_lang-D3wrVsBd.js"),oe=require("../ScrollContainer.vue_vue_type_style_index_0_lang-Br7-ZHr3.js"),ne=require("../Shortcut.vue_vue_type_style_index_0_lang-BfPJ-C7d.js"),re=e.defineComponent({...o.getComponentOptions("CommentActions"),__name:"CommentActions",setup(d){const s=V(),r=e.ref(),t=e.ref(),u=()=>{s.emit("openActions",t.value)},l=()=>{s.emit("openReaction",r.value)},i=()=>{s.emit("reply",c=>{s.openReplies&&(c!==void 0?s.openReplies.value=c:s.openReplies.value=!s.openReplies.value)})};return(c,n)=>e.unref(s).props.hasReaction||e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(v),"actions"),e.unref(s).props.actionsCls))},[e.unref(s).props.hasReply?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,icon:"tabler:corner-up-left",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:r,flipOnDir:"rtl",onClick:i},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasReaction?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:r,onPointerdown:n[0]||(n[0]=e.withModifiers(()=>{},["stop"])),onClick:l},null,512)):e.createCommentVNode("",!0),e.unref(s).props.hasEdit||e.unref(s).props.hasDelete?(e.openBlock(),e.createBlock(E._sfc_main,{key:2,icon:"tabler:dots-vertical",color:"neutral",type:"ghost",ref_key:"actionRef",ref:t,onPointerdown:n[1]||(n[1]=e.withModifiers(()=>{},["stop"])),onClick:u},null,512)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),se=e.defineComponent({...o.getComponentOptions("CommentReactions"),__name:"CommentReactions",setup(d){const s=V(),r=e.ref(),t=()=>{s.emit("openReaction",r.value)},u=l=>{l&&s.emit("reaction",l)};return(l,i)=>{var c;return e.unref(s).props.hasReaction&&((c=e.unref(s).props.reactions)!=null&&c.some(n=>n.count&&n.emoji))?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(v),"reactions"),e.unref(s).props.reactionsCls))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).props.reactions,n=>(e.openBlock(),e.createBlock(Q._sfc_main,{key:n==null?void 0:n.emoji,active:n==null?void 0:n.active,onClick:y=>u(n)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n==null?void 0:n.emoji)+" "+e.toDisplayString(n==null?void 0:n.count),1)]),_:2},1032,["active","onClick"]))),128)),e.createVNode(E._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"outline",ref_key:"reactionRef",ref:r,onPointerdown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onClick:t},null,512)],2)):e.createCommentVNode("",!0)}}}),I=e.defineComponent({...o.getComponentOptions("CommentFileList"),__name:"CommentFileList",setup(d){const s=V(),r=()=>{var t;return e.h(D.UploadList,{...s.props.uploadProps??{},ref:s.fileListRef,listType:"card",fileListCls:o.normCls(o.getBemElement(v,"file_list"),(t=s.props.uploadProps)==null?void 0:t.fileListCls)},s.slots)};return(t,u)=>{var l,i;return(i=(l=e.unref(s).props.uploadProps)==null?void 0:l.fileList)!=null&&i.length?(e.openBlock(),e.createBlock(r,{key:0})):e.createCommentVNode("",!0)}}}),v=o.getBemBlock("comment"),[V,w]=J.createContext("Comment"),q=e.defineComponent({...o.getComponentOptions("Comment"),__name:"Comment",props:{class:{},headerCls:{},actionsCls:{},bodyCls:{},datetimeCls:{},uploadProps:{},contentCls:{},authorCls:{},repliesCls:{},headerContentCls:{},reactionsCls:{},repliesHeaderCls:{},repliesTitleCls:{},repliesContentCls:{},author:{},avatar:{},content:{},datetime:{},repliesCount:{},repliesTitle:{default:"Replies"},avatarProps:{},open:{type:Boolean,default:void 0},hasReaction:{type:Boolean,default:!0},hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},hasReply:{type:Boolean,default:!0},reactions:{}},emits:["update:open","openActions","reaction","reply","openReaction"],setup(d,{emit:s}){const r=d,t=e.useSlots(),u=s,l=h.useVModel(r,"open",u,{passive:r.open===void 0}),i=()=>{var C;let p;const g=(C=t.author)==null?void 0:C.call(t,{});return!h.isEmptyElement(g)?p=g:p=r.author,p?e.h("div",{class:o.normCls(o.getBemElement(v,"author"),r.authorCls)},p):null},c=()=>{var C;let p;const g=(C=t.datetime)==null?void 0:C.call(t,{});return!h.isEmptyElement(g)?p=g:p=r.datetime,p?e.h("div",{class:o.normCls(o.getBemElement(v,"datetime"),r.datetimeCls)},p):null},n=()=>{var C,_;const p=(C=t.header)==null?void 0:C.call(t,{}),g=!h.isEmptyElement(p);let f;if(g)f=p;else{f=[];const S=(_=t.avatar)==null?void 0:_.call(t,{});!h.isEmptyElement(S)?f.push(S):r.avatar&&f.push(e.h(A._sfc_main,{...r.avatarProps??{},src:r.avatar}));const P=i(),k=c();(P||k)&&f.push(e.h("div",{class:o.normCls(o.getBemElement(v,"header__content"),r.headerContentCls)},[P,k])),f.length||(f=void 0)}return f?(f.push(e.h(re)),e.h("div",{class:o.normCls(o.getBemElement(v,"header"),r.headerCls)},f)):null},y=()=>{var f;const p=(f=t.content)==null?void 0:f.call(t,{}),g=!h.isEmptyElement(p);if(g||r.content)return e.h("div",{class:o.normCls(o.getBemElement(v,"content"),r.contentCls,"paragraph"),innerHTML:g?void 0:r.content},g?p:void 0)},m=o.getBemElement(v,"replies"),B=W.cva(m,{variants:{open:o.generateVariantClassList("open",m)}}),R=()=>{var _;const p=(_=t.replies)==null?void 0:_.call(t,{}),g=!h.isEmptyElement(p),f=()=>{var P,k,x;const S=(P=t.repliesHeader)==null?void 0:P.call(t,{open:!!l.value}),a=[];if(!h.isEmptyElement(S))a.push(S);else{a.push(e.h(X._sfc_main,{size:"xsm",bg:"transparent",br:"transparent"},{default:()=>e.h(T._sfc_main,{icon:"tabler:chevron-down",class:o.getBemElement(m,"icon"),size:"2xsm"})}));const M=(k=t.repliesCount)==null?void 0:k.call(t,{}),U=!h.isEmptyElement(M),z=(x=t.repliesTitle)==null?void 0:x.call(t,{}),G=!h.isEmptyElement(z);let N;G?N=z:N=r.repliesTitle,a.push(e.h("div",{class:o.normCls(o.getBemElement(m,"title"),r.repliesTitleCls)},N)),(U||r.repliesCount)&&a.push(e.h(K._sfc_main,{color:"primary-subtle",text:r.repliesCount,size:"xsm"},{text:()=>M}))}return e.h("div",{class:o.normCls(o.getBemElement(m,"header"),r.repliesHeaderCls),onClick:()=>{l.value=!l.value}},a)},C=()=>{if(l.value)return[e.h("div",{class:o.normCls(o.getBemElement(m,"content"),r.repliesContentCls)},p),e.h("div",{class:o.getBemElement(m,"line")})]};return g?e.h("div",{class:o.normCls(B({open:!!l.value}),r.repliesCls)},[f(),C()]):null},b=e.ref();return w({openReplies:l,emit:u,props:r,slots:t,fileListRef:b}),(p,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(v),r.class))},[e.createVNode(n),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(v),"body"),r.bodyCls))},[e.createVNode(y),e.createVNode(I),e.createVNode(se),e.createVNode(R)],2)],2))}}),L=e.defineComponent({...o.getComponentOptions("CommentAction"),__name:"CommentAction",props:{hasEdit:{type:Boolean,default:!0},hasDelete:{type:Boolean,default:!0},editText:{default:"Edit"},deleteText:{default:"Delete"},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},modal:{type:Boolean},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},sideOffset:{},sideFlip:{type:Boolean},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},class:{},containerCls:{},containerClass:{},size:{},to:{},placement:{},reversePlacementOnDir:{},autoFocusInside:{type:Boolean},noPadding:{type:Boolean},zIndex:{},containerStyle:{},containerProps:{},useReferenceAttribute:{type:Boolean},noTrigger:{type:Boolean}},emits:["edit","delete","update:open"],setup(d,{emit:s}){const r=d,t=s,u=()=>{t("edit"),i.value=!1},l=()=>{t("delete"),i.value=!1},i=h.useVModel(r,"open",t,{passive:r.open===void 0});return(c,n)=>(e.openBlock(),e.createBlock(e.unref(Y._sfc_main),e.mergeProps(r,{open:e.unref(i),"onUpdate:open":n[0]||(n[0]=y=>e.isRef(i)?i.value=y:null),placement:"bottom-end",sideOffset:3,openDelay:0}),{content:e.withCtx(()=>[e.createVNode(O._sfc_main,{style:{width:"114px"}},{default:e.withCtx(()=>[c.hasEdit?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"edit",title:c.editText,onClick:u},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(T._sfc_main,{icon:"tabler:edit",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0),c.hasDelete?(e.openBlock(),e.createBlock(O._sfc_main$1,{key:"delete",title:c.deleteText,danger:"",onClick:l},{leading:e.withCtx(({iconSize:y})=>[e.createVNode(T._sfc_main,{icon:"tabler:trash",size:y},null,8,["size"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1})]),_:1},16,["open"]))}}),F=e.defineComponent({...o.getComponentOptions("CommentReaction"),__name:"CommentReaction",props:{reference:{},open:{type:Boolean,default:void 0},icons:{},emojis:{},group:{},modelValue:{},defaultValue:{},visibleTabs:{},noTrigger:{type:Boolean},noModel:{type:Boolean},hideClear:{type:Boolean},hideColor:{type:Boolean},hideGroup:{type:Boolean},hideIcons:{type:Boolean},hideEmojis:{type:Boolean},hideSearch:{type:Boolean},hideRandom:{type:Boolean},disabled:{type:Boolean},borderless:{type:Boolean},popoverProps:{},colorPopoverProps:{},fgColorSwatchGroupProps:{},bgColorSwatchGroupProps:{},brColorSwatchGroupProps:{},visibleColorPickers:{},contentCls:{},headerCls:{},groupCls:{},searchCls:{},colorsCls:{},emptyCls:{},gridCls:{},scrollContainerProps:{},size:{},id:{},resetColorsOnChangeType:{}},emits:["reaction","update:open"],setup(d,{emit:s}){const r=d,t=s,u=i=>{t("reaction",i.value),l.value=!1},l=h.useVModel(r,"open",t,{passive:r.open===void 0});return(i,c)=>(e.openBlock(),e.createBlock(e.unref(Z.default),e.mergeProps(r,{noTrigger:"",hideClear:"",hideGroup:"",hideIcons:"",hideRandom:"",group:"emoji",popoverProps:{...i.popoverProps??{},reference:i.reference},placement:"bottom-end",visibleColorPickers:[],noModel:"",onSelect:u,open:e.unref(l),"onUpdate:open":c[0]||(c[0]=n=>e.isRef(l)?l.value=n:null)}),null,16,["popoverProps","open"]))}}),j=e.defineComponent({...o.getComponentOptions("CommentMention"),__name:"CommentMention",props:{modelValue:{},defaultValue:{},multiple:{type:Boolean},disabled:{type:Boolean},highlightOnHover:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},size:{},status:{},noValueOnPlaceholder:{type:Boolean},zIndex:{},checkbox:{type:Boolean},tagRenderMode:{},getTagProps:{type:Function},tree:{type:Boolean},treeProps:{},contentFit:{type:Boolean},wrapped:{type:Boolean},sortSelectedItems:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},trailingIcon:{type:[String,Boolean]},selectedItemIconAsTrailingIcon:{type:Boolean},maxCount:{},to:{type:[String,Function]},placeholder:{},indicatorIcon:{},options:{},getDisabled:{type:[String,Number,Function]},getLabel:{},getDescription:{},getValue:{},getNoCheckbox:{type:[String,Number,Function]},getSingle:{type:[String,Number,Function]},getClear:{type:[String,Number,Function]},getOptions:{type:[String,Number,Function]},getIcon:{},loading:{type:Boolean},skeletonProps:{},loadingRowCount:{},lazyLoading:{type:Boolean},bordered:{type:Boolean},clearOnChangeMultiple:{type:Boolean},triggerCls:{},triggerLeadingCls:{},triggerContentCls:{},triggerContentPlaceholderCls:{},triggerContentValueCls:{},triggerTrailingCls:{},itemLeadingCls:{},optionCls:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean},popupHeight:{},popupWidth:{},minWidth:{},search:{},filterOptions:{},expandedKeys:{},headerSearch:{type:Boolean},headerSearchInputProps:{},virtual:{type:Boolean},showTriggerTagOnOption:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},getMenuItemProps:{type:[Function,Object]},placement:{},containerProps:{},reversePlacementOnDir:{},open:{type:Boolean},defaultOpen:{type:Boolean},sideOffset:{},alignOffset:{},reference:{},prioritizePosition:{type:Boolean},avoidCollisions:{type:Boolean},dir:{},noTrigger:{type:Boolean}},emits:["mention"],setup(d,{expose:s,emit:r}){const t=d,u=r,l=e.useSlots(),i=(n,y,m)=>{u("mention",n,m)},c=e.ref();return s({comboboxRef:c}),(n,y)=>(e.openBlock(),e.createBlock(e.unref(ee.Combobox),e.mergeProps({ref_key:"comboboxRef",ref:c},t,{modelValue:"",onSelect:i,noTrigger:"",popupWidth:200}),e.createSlots({_:2},[e.renderList(Object.keys(l),m=>({name:m,fn:e.withCtx(B=>[e.renderSlot(n.$slots,m,e.normalizeProps(e.guardReactiveProps(B)))])}))]),1040))}}),H=e.defineComponent({...o.getComponentOptions("CommentEditor"),__name:"CommentEditor",props:{class:{},actionsCls:{},editorCls:{},footerCls:{},disabled:{type:Boolean,default:void 0},isEmpty:{type:Boolean},mentionsReference:{},uploadProps:{},maxHeight:{default:100}},emits:["openReaction","openMention","blur","focus","mention","submit"],setup(d,{emit:s}){const r=e.useSlots(),t=d,u=s,l=o.getBemElement(v,"editor"),i=e.ref(),c=()=>{u("openReaction",i.value)},n=e.ref(),y=()=>{u("openMention",n.value)},{getDisabled:m}=h.useFormInput(),{rootBindings:B,inputBindings:R}=h.useInputDataStates({getDisabled:()=>m.value,emit:u}),b=()=>u("submit"),p=e.computed(()=>o.getPxSize(t.maxHeight,!0)),g=e.ref(),f=C=>{var _;(_=g.value)!=null&&_.addFiles&&C.length&&g.value.addFiles(C)};return w({emit:u,props:t,slots:r,fileListRef:g}),(C,_)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(o.normCls)(e.unref(l),t.class)},e.unref(B)),[e.createVNode(oe._sfc_main,{overlay:!1,hasMask:!1,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(l),"editor"),"paragraph",t.editorCls)),style:e.normalizeStyle({maxHeight:p.value})},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default",e.normalizeProps(e.guardReactiveProps(e.unref(R))))]),_:3},8,["class","style"]),e.createVNode(I,e.mergeProps(C.uploadProps,{ref:"uploadRef"}),null,16),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(l),"footer"),t.footerCls))},[e.createVNode(te._sfc_main),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(l),"actions"),t.actionsCls))},[e.createVNode(E._sfc_main,{icon:"tabler:at",color:"neutral",type:"ghost",ref_key:"mentionRef",ref:n,onPointerdown:_[0]||(_[0]=e.withModifiers(()=>{},["stop"])),onClick:y},null,512),e.createVNode(D.UploadTrigger,{accept:"image/*",multiple:"",onAddFiles:f},{default:e.withCtx(()=>[e.createVNode(E._sfc_main,{icon:"tabler:paperclip",color:"neutral",type:"ghost"})]),_:1}),e.createVNode(E._sfc_main,{icon:"tabler:mood-plus",color:"neutral",type:"ghost",ref_key:"reactionRef",ref:i,onPointerdown:_[1]||(_[1]=e.withModifiers(()=>{},["stop"])),onClick:c},null,512)],2),e.createVNode(E._sfc_main,{disabled:C.isEmpty,icon:"tabler:arrow-up",onClick:b},null,8,["disabled"])],2)],16))}}),le=["tabindex","disabled"],$=e.defineComponent({...o.getComponentOptions("CommentTrigger"),__name:"CommentTrigger",props:{class:{},text:{default:"Add a Comment or type @ to Mention..."},src:{},withShortcut:{type:Boolean},ignoeShortcut:{type:Boolean},disabled:{type:Boolean},avatarProps:{},shortcutProps:{}},emits:["add"],setup(d,{emit:s}){const r=e.useSlots(),t=d,u=s,l=o.getBemElement(v,"trigger"),i=n=>{!t.ignoeShortcut&&n.code==="KeyC"&&n.altKey&&c(n)};e.onMounted(()=>{t.withShortcut&&addEventListener("keyup",i)}),e.onBeforeUnmount(()=>{t.withShortcut&&removeEventListener("keyup",i)}),t.withShortcut;const c=n=>u("add",n);return(n,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(l),t.class)),tabindex:n.disabled?-1:0,disabled:n.disabled?"":void 0,onPointerdown:e.withModifiers(c,["stop"]),onKeyup:e.withModifiers(c,["stop"])},[e.createVNode(A._sfc_main,e.mergeProps(n.avatarProps??{},{size:"sm",src:n.src}),e.createSlots({_:2},[e.renderList(Object.keys(r),m=>({name:m,fn:e.withCtx(B=>[e.renderSlot(n.$slots,m,e.normalizeProps(e.guardReactiveProps(B)))])}))]),1040,["src"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(l),"text"))},[e.renderSlot(n.$slots,"text",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2),e.createVNode(ne._sfc_main,e.mergeProps(n.shortcutProps??{},{items:[{text:"Alt"},{text:"C"}]}),null,16)],42,le))}}),ie=h.installComponent(q,o.getComponentName("Comment")),ae=h.installComponent(L,o.getComponentName("CommentAction")),ce=h.installComponent(F,o.getComponentName("CommentReaction")),pe=h.installComponent(j,o.getComponentName("CommentMention")),ue=h.installComponent(H,o.getComponentName("CommentEditor")),me=h.installComponent($,o.getComponentName("CommentTrigger")),de=d=>{const s=e.ref(!1),r=e.ref(),t=e.ref(!1),u=(a,P=!1)=>{s.value=!0,t.value=P,r.value=a},l=e.ref(!1),i=e.ref(),c=a=>{l.value=!0,i.value=a},n=e.computed(()=>({open:s.value,reference:r.value,"onUpdate:open":a=>s.value=a,onReaction:a=>{var P,k;if(t.value)try{(P=d.addEmoji)==null||P.call(d,a)}catch(x){console.error("error on reaction ===>",x)}try{(k=d.onReaction)==null||k.call(d,a)}catch(x){console.error("error on reaction ===>",x)}}})),y=e.computed(()=>({open:l.value,reference:i.value,"onUpdate:open":a=>l.value=a})),m=e.ref(!1),B=e.ref(),R=e.ref(),b=e.ref(),p=e.ref(!1),g=e.computed(()=>({ref:R,open:m.value,"onUpdate:open":a=>m.value=a,search:B.value,"onUpdate:search":a=>B.value=a,reference:b.value,disableOutsidePointerEvents:!1,resetSearchTermOnBlur:!0,headerSearch:p.value,onPointerDownOutside:C,onEscapeKeyDown:C})),f=a=>{a&&(b.value={getBoundingClientRect:a},m.value=!0,p.value=!1)},C=()=>{b.value=void 0,m.value=!1,B.value=void 0},_=a=>{B.value=a},S=e.computed(()=>({onOpenReaction:a=>u(a,!0),onOpenMention:a=>{a&&(b.value=a,m.value=!0,p.value=!0)}}));return{forwardRefMention:R,reactionBinding:n,actionBinding:y,editorBinding:S,mentionBinding:g,openActions:c,openReaction:u,openMentionInEditor:f,closeMentionInEditor:C,updateMentionQuery:_}};exports.Comment=q;exports.CommentAction=L;exports.CommentActionPlugin=ae;exports.CommentEditor=H;exports.CommentEditorPlugin=ue;exports.CommentMention=j;exports.CommentMentionPlugin=pe;exports.CommentPlugin=ie;exports.CommentReaction=F;exports.CommentReactionPlugin=ce;exports.CommentTrigger=$;exports.CommentTriggerPlugin=me;exports.commentPrefix=v;exports.injectCommentContext=V;exports.provideCommentContext=w;exports.useComment=de;