@univerjs/thread-comment-ui 0.2.3 → 0.2.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.
package/lib/es/index.js CHANGED
@@ -1,37 +1,39 @@
1
- var je = Object.defineProperty;
2
- var Ve = (t, e, n) => e in t ? je(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var w = (t, e, n) => Ve(t, typeof e != "symbol" ? e + "" : e, n);
4
- import Be from "dayjs";
5
- import { UniverThreadCommentPlugin as Fe, ThreadCommentModel as Se, AddCommentCommand as We, UpdateCommentCommand as ze, ResolveCommentCommand as Ze, DeleteCommentTreeCommand as Ee, DeleteCommentCommand as Ye } from "@univerjs/thread-comment";
6
- import { Disposable as ye, UniverInstanceType as he, IUniverInstanceService as Ge, CommandType as xe, OnLifecycle as Ke, LifecycleStages as qe, LocaleService as se, Plugin as Je, mergeOverrideWithDependencies as Qe, DependentOn as Xe, ICommandService as J, CustomRangeType as et, UserManagerService as Ce, Tools as tt } from "@univerjs/core";
7
- import { Inject as ve, createIdentifier as nt, Injector as rt } from "@wendellhu/redi";
8
- import { ISidebarService as _e, useObservable as L } from "@univerjs/ui";
9
- import { BehaviorSubject as fe, filter as ot } from "rxjs";
10
- import a, { forwardRef as A, useRef as me, createElement as V, useState as k, useImperativeHandle as at, useEffect as ue, useMemo as ce } from "react";
11
- import { useDependency as S } from "@wendellhu/redi/react-bindings";
12
- import { Mentions as it, Mention as lt, Button as ae, Dropdown as st, Menu as mt, MenuItem as ge, Select as pe } from "@univerjs/design";
13
- import dt from "clsx";
14
- import { ITextSelectionRenderManager as ct } from "@univerjs/engine-render";
15
- import { TextSelectionManagerService as ut } from "@univerjs/docs";
16
- function ht() {
17
- return Be().format("YYYY/MM/DD HH:mm");
1
+ var We = Object.defineProperty;
2
+ var Fe = (t, e, n) => e in t ? We(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var w = (t, e, n) => Fe(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import ze from "dayjs";
5
+ import { UniverThreadCommentPlugin as Ze, ThreadCommentModel as xe, AddCommentCommand as Ye, UpdateCommentCommand as Ge, ResolveCommentCommand as Ke, DeleteCommentTreeCommand as _e, DeleteCommentCommand as qe } from "@univerjs/thread-comment";
6
+ import { Disposable as Te, UniverInstanceType as Ce, IUniverInstanceService as Je, CommandType as Ne, OnLifecycle as Qe, LifecycleStages as Xe, LocaleService as de, Plugin as et, mergeOverrideWithDependencies as tt, DependentOn as nt, ICommandService as X, CustomRangeType as rt, UserManagerService as fe, Tools as ot } from "@univerjs/core";
7
+ import { Inject as ge, createIdentifier as at, Injector as it } from "@wendellhu/redi";
8
+ import { ISidebarService as Me, useObservable as j } from "@univerjs/ui";
9
+ import { BehaviorSubject as Ie, filter as lt } from "rxjs";
10
+ import a, { forwardRef as A, useRef as ce, createElement as B, useState as k, useImperativeHandle as st, useEffect as ve, useMemo as he } from "react";
11
+ import { useDependency as b } from "@wendellhu/redi/react-bindings";
12
+ import { Mentions as mt, Mention as dt, Button as le, Dropdown as ct, Menu as ut, MenuItem as Se, Select as be } from "@univerjs/design";
13
+ import ht from "clsx";
14
+ import { ITextSelectionRenderManager as vt } from "@univerjs/engine-render";
15
+ import { TextSelectionManagerService as Ct } from "@univerjs/docs";
16
+ function ft() {
17
+ return ze().format("YYYY/MM/DD HH:mm");
18
18
  }
19
- const Ct = "thread-comment-panel", vt = "THREAD_COMMENT_UI_PLUGIN";
20
- var ft = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, pt = (t, e, n, r) => {
21
- for (var o = r > 1 ? void 0 : r ? gt(e, n) : e, l = t.length - 1, m; l >= 0; l--)
22
- (m = t[l]) && (o = (r ? m(e, n, o) : m(o)) || o);
23
- return r && o && ft(e, n, o), o;
24
- }, Ie = (t, e) => (n, r) => e(n, r, t);
25
- let F = class extends ye {
19
+ const gt = "thread-comment-panel", pt = "THREAD_COMMENT_UI_PLUGIN";
20
+ var It = Object.defineProperty, St = Object.getOwnPropertyDescriptor, bt = (t, e, n, r) => {
21
+ for (var o = r > 1 ? void 0 : r ? St(e, n) : e, i = t.length - 1, m; i >= 0; i--)
22
+ (m = t[i]) && (o = (r ? m(e, n, o) : m(o)) || o);
23
+ return r && o && It(e, n, o), o;
24
+ }, Ee = (t, e) => (n, r) => e(n, r, t);
25
+ let z = class extends Te {
26
26
  constructor(e, n) {
27
27
  super();
28
28
  w(this, "_panelVisible", !1);
29
- w(this, "_panelVisible$", new fe(!1));
29
+ w(this, "_panelVisible$", new Ie(!1));
30
30
  w(this, "_activeCommentId");
31
- w(this, "_activeCommentId$", new fe(void 0));
31
+ w(this, "_activeCommentId$", new Ie(void 0));
32
32
  w(this, "panelVisible$", this._panelVisible$.asObservable());
33
33
  w(this, "activeCommentId$", this._activeCommentId$.asObservable());
34
- this._sidebarService = e, this._univerInstanceService = n, this._init();
34
+ this._sidebarService = e, this._univerInstanceService = n, this._init(), this.disposeWithMe(() => {
35
+ this._activeCommentId$.complete(), this._panelVisible$.complete();
36
+ });
35
37
  }
36
38
  _init() {
37
39
  this.disposeWithMe(
@@ -39,7 +41,7 @@ let F = class extends ye {
39
41
  e.visible || this.setPanelVisible(!1);
40
42
  })
41
43
  ), this.disposeWithMe(
42
- this._univerInstanceService.getCurrentTypeOfUnit$(he.UNIVER_SHEET).pipe(ot((e) => !e)).subscribe(() => {
44
+ this._univerInstanceService.getCurrentTypeOfUnit$(Ce.UNIVER_SHEET).pipe(lt((e) => !e)).subscribe(() => {
43
45
  this._sidebarService.close();
44
46
  })
45
47
  );
@@ -57,43 +59,43 @@ let F = class extends ye {
57
59
  this._activeCommentId = e, this._activeCommentId$.next(e);
58
60
  }
59
61
  };
60
- F = pt([
61
- Ie(0, ve(_e)),
62
- Ie(1, Ge)
63
- ], F);
64
- const It = {
62
+ z = bt([
63
+ Ee(0, ge(Me)),
64
+ Ee(1, Je)
65
+ ], z);
66
+ const Et = {
65
67
  id: "thread-comment-ui.operation.toggle-panel",
66
- type: xe.OPERATION,
68
+ type: Ne.OPERATION,
67
69
  handler(t) {
68
- const e = t.get(_e), n = t.get(F);
70
+ const e = t.get(Me), n = t.get(z);
69
71
  return n.panelVisible ? (e.close(), n.setPanelVisible(!1)) : (e.open({
70
72
  header: { title: "threadCommentUI.panel.title" },
71
- children: { label: Ct },
73
+ children: { label: gt },
72
74
  width: 320
73
75
  }), n.setPanelVisible(!0)), !0;
74
76
  }
75
- }, j = {
77
+ }, V = {
76
78
  id: "thread-comment-ui.operation.set-active-comment",
77
- type: xe.OPERATION,
79
+ type: Ne.OPERATION,
78
80
  handler(t, e) {
79
- return t.get(F).setActiveComment(e), !0;
81
+ return t.get(z).setActiveComment(e), !0;
80
82
  }
81
83
  };
82
- var bt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Et = (t, e, n, r) => {
83
- for (var o = r > 1 ? void 0 : r ? St(e, n) : e, l = t.length - 1, m; l >= 0; l--)
84
- (m = t[l]) && (o = (r ? m(e, n, o) : m(o)) || o);
85
- return r && o && bt(e, n, o), o;
86
- }, yt = (t, e) => (n, r) => e(n, r, t);
87
- let oe = class extends ye {
84
+ var yt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, _t = (t, e, n, r) => {
85
+ for (var o = r > 1 ? void 0 : r ? xt(e, n) : e, i = t.length - 1, m; i >= 0; i--)
86
+ (m = t[i]) && (o = (r ? m(e, n, o) : m(o)) || o);
87
+ return r && o && yt(e, n, o), o;
88
+ }, Tt = (t, e) => (n, r) => e(n, r, t);
89
+ let ie = class extends Te {
88
90
  constructor(t) {
89
91
  super(), this._localeService = t;
90
92
  }
91
93
  };
92
- oe = Et([
93
- Ke(qe.Starting, oe),
94
- yt(0, ve(se))
95
- ], oe);
96
- class xt {
94
+ ie = _t([
95
+ Qe(Xe.Starting, ie),
96
+ Tt(0, ge(de))
97
+ ], ie);
98
+ class Nt {
97
99
  constructor() {
98
100
  w(this, "dataSource");
99
101
  w(this, "renderSuggestion");
@@ -103,36 +105,36 @@ class xt {
103
105
  return this.dataSource ? this.dataSource.getMentions(e, n, r) : [];
104
106
  }
105
107
  }
106
- const Te = nt("thread-comment.mention-data.service");
107
- var Ne = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, Tt = (t, e, n) => e in t ? Ne(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Nt = (t, e, n, r) => {
108
- for (var o = r > 1 ? void 0 : r ? _t(e, n) : e, l = t.length - 1, m; l >= 0; l--)
109
- (m = t[l]) && (o = (r ? m(e, n, o) : m(o)) || o);
110
- return r && o && Ne(e, n, o), o;
111
- }, be = (t, e) => (n, r) => e(n, r, t), Me = (t, e, n) => Tt(t, typeof e != "symbol" ? e + "" : e, n);
112
- let ie = class extends Je {
108
+ const Pe = at("thread-comment.mention-data.service");
109
+ var Ue = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, Pt = (t, e, n) => e in t ? Ue(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ut = (t, e, n, r) => {
110
+ for (var o = r > 1 ? void 0 : r ? Mt(e, n) : e, i = t.length - 1, m; i >= 0; i--)
111
+ (m = t[i]) && (o = (r ? m(e, n, o) : m(o)) || o);
112
+ return r && o && Ue(e, n, o), o;
113
+ }, ye = (t, e) => (n, r) => e(n, r, t), $e = (t, e, n) => Pt(t, typeof e != "symbol" ? e + "" : e, n);
114
+ let se = class extends et {
113
115
  constructor(t, e, n) {
114
116
  super(), this._config = t, this._injector = e, this._commandService = n;
115
117
  }
116
118
  onStarting(t) {
117
119
  var e;
118
- Qe([
119
- [oe],
120
- [F],
121
- [Te, { useClass: xt }]
120
+ tt([
121
+ [ie],
122
+ [z],
123
+ [Pe, { useClass: Nt }]
122
124
  ], (e = this._config) == null ? void 0 : e.overrides).forEach((n) => {
123
125
  t.add(n);
124
- }), [It, j].forEach((n) => {
126
+ }), [Et, V].forEach((n) => {
125
127
  this._commandService.registerCommand(n);
126
128
  });
127
129
  }
128
130
  };
129
- Me(ie, "pluginName", vt);
130
- Me(ie, "type", he.UNIVER_UNKNOWN);
131
- ie = Nt([
132
- Xe(Fe),
133
- be(1, ve(rt)),
134
- be(2, J)
135
- ], ie);
131
+ $e(se, "pluginName", pt);
132
+ $e(se, "type", Ce.UNIVER_UNKNOWN);
133
+ se = Ut([
134
+ nt(Ze),
135
+ ye(1, ge(it)),
136
+ ye(2, X)
137
+ ], se);
136
138
  var T = function() {
137
139
  return T = Object.assign || function(t) {
138
140
  for (var e, n = 1, r = arguments.length; n < r; n++) {
@@ -141,95 +143,95 @@ var T = function() {
141
143
  }
142
144
  return t;
143
145
  }, T.apply(this, arguments);
144
- }, Mt = function(t, e) {
146
+ }, $t = function(t, e) {
145
147
  var n = {};
146
148
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
147
149
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
148
150
  for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
149
151
  e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
150
152
  return n;
151
- }, B = A(function(t, e) {
152
- var n = t.icon, r = t.id, o = t.className, l = t.extend, m = Mt(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), f = me("_".concat(Ot()));
153
- return Ue(n, "".concat(r), { defIds: n.defIds, idSuffix: f.current }, T({ ref: e, className: c }, m), l);
153
+ }, W = A(function(t, e) {
154
+ var n = t.icon, r = t.id, o = t.className, i = t.extend, m = $t(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), f = ce("_".concat(Ht()));
155
+ return Oe(n, "".concat(r), { defIds: n.defIds, idSuffix: f.current }, T({ ref: e, className: c }, m), i);
154
156
  });
155
- function Ue(t, e, n, r, o) {
156
- return V(t.tag, T(T({ key: e }, Ut(t, n, o)), r), (Pt(t, n).children || []).map(function(l, m) {
157
- return Ue(l, "".concat(e, "-").concat(t.tag, "-").concat(m), n, void 0, o);
157
+ function Oe(t, e, n, r, o) {
158
+ return B(t.tag, T(T({ key: e }, Ot(t, n, o)), r), (wt(t, n).children || []).map(function(i, m) {
159
+ return Oe(i, "".concat(e, "-").concat(t.tag, "-").concat(m), n, void 0, o);
158
160
  }));
159
161
  }
160
- function Ut(t, e, n) {
162
+ function Ot(t, e, n) {
161
163
  var r = T({}, t.attrs);
162
164
  n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1);
163
165
  var o = e.defIds;
164
- return !o || o.length === 0 || (t.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + e.idSuffix), Object.entries(r).forEach(function(l) {
165
- var m = l[0], c = l[1];
166
+ return !o || o.length === 0 || (t.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + e.idSuffix), Object.entries(r).forEach(function(i) {
167
+ var m = i[0], c = i[1];
166
168
  typeof c == "string" && (r[m] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
167
169
  })), r;
168
170
  }
169
- function Pt(t, e) {
171
+ function wt(t, e) {
170
172
  var n, r = e.defIds;
171
173
  return !r || r.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? T(T({}, t), { children: t.children.map(function(o) {
172
174
  return typeof o.attrs.id == "string" && r && r.indexOf(o.attrs.id) > -1 ? T(T({}, o), { attrs: T(T({}, o.attrs), { id: o.attrs.id + e.idSuffix }) }) : o;
173
175
  }) }) : t;
174
176
  }
175
- function Ot() {
177
+ function Ht() {
176
178
  return Math.random().toString(36).substring(2, 8);
177
179
  }
178
- B.displayName = "UniverIcon";
179
- var $t = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Pe = A(function(t, e) {
180
- return V(B, Object.assign({}, t, {
180
+ W.displayName = "UniverIcon";
181
+ var Rt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, we = A(function(t, e) {
182
+ return B(W, Object.assign({}, t, {
181
183
  id: "delete-single",
182
184
  ref: e,
183
- icon: $t
185
+ icon: Rt
184
186
  }));
185
187
  });
186
- Pe.displayName = "DeleteSingle";
187
- var wt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, Oe = A(function(t, e) {
188
- return V(B, Object.assign({}, t, {
188
+ we.displayName = "DeleteSingle";
189
+ var Dt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, He = A(function(t, e) {
190
+ return B(W, Object.assign({}, t, {
189
191
  id: "increase-single",
190
192
  ref: e,
191
- icon: wt
193
+ icon: Dt
192
194
  }));
193
195
  });
194
- Oe.displayName = "IncreaseSingle";
195
- var Ht = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3 9C3.55228 9 4 8.55228 4 8 4 7.44772 3.55228 7 3 7 2.44772 7 2 7.44772 2 8 2 8.55228 2.44772 9 3 9zM8 9C8.55228 9 9 8.55228 9 8 9 7.44772 8.55228 7 8 7 7.44772 7 7 7.44772 7 8 7 8.55228 7.44772 9 8 9zM13 9C13.5523 9 14 8.55228 14 8 14 7.44772 13.5523 7 13 7 12.4477 7 12 7.44772 12 8 12 8.55228 12.4477 9 13 9z" } }] }, $e = A(function(t, e) {
196
- return V(B, Object.assign({}, t, {
196
+ He.displayName = "IncreaseSingle";
197
+ var kt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3 9C3.55228 9 4 8.55228 4 8 4 7.44772 3.55228 7 3 7 2.44772 7 2 7.44772 2 8 2 8.55228 2.44772 9 3 9zM8 9C8.55228 9 9 8.55228 9 8 9 7.44772 8.55228 7 8 7 7.44772 7 7 7.44772 7 8 7 8.55228 7.44772 9 8 9zM13 9C13.5523 9 14 8.55228 14 8 14 7.44772 13.5523 7 13 7 12.4477 7 12 7.44772 12 8 12 8.55228 12.4477 9 13 9z" } }] }, Re = A(function(t, e) {
198
+ return B(W, Object.assign({}, t, {
197
199
  id: "more-horizontal-single",
198
200
  ref: e,
199
- icon: Ht
201
+ icon: kt
200
202
  }));
201
203
  });
202
- $e.displayName = "MoreHorizontalSingle";
203
- var Rt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { stroke: "currentColor", d: "M7.48389 10.3267V12.1905C7.48389 12.7428 7.9316 13.1905 8.48389 13.1905H11.2216L12.2955 14.2644L13.3695 13.1905H14.1593C14.7116 13.1905 15.1593 12.7428 15.1593 12.1905V8.46289C15.1593 7.91061 14.7116 7.46289 14.1593 7.46289H12.2955", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.2 } }, { tag: "path", attrs: { stroke: "currentColor", d: "M0.840332 3.73535C0.840332 2.63078 1.73576 1.73535 2.84033 1.73535H10.2955C11.4001 1.73535 12.2955 2.63078 12.2955 3.73535V8.32676C12.2955 9.43132 11.4001 10.3268 10.2955 10.3268H5.6014L4.1695 11.7587L3.05978 10.3268H2.84033C1.73576 10.3268 0.840332 9.43133 0.840332 8.32676V3.73535Z", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.2 } }, { tag: "path", attrs: { stroke: "currentColor", d: "M6.41016 6.1311H6.76813M8.91626 6.1311H9.27424M3.90454 6.1311H4.26252", strokeLinecap: "round", strokeWidth: 1.2 } }] }, we = A(function(t, e) {
204
- return V(B, Object.assign({}, t, {
204
+ Re.displayName = "MoreHorizontalSingle";
205
+ var At = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { stroke: "currentColor", d: "M7.48389 10.3267V12.1905C7.48389 12.7428 7.9316 13.1905 8.48389 13.1905H11.2216L12.2955 14.2644L13.3695 13.1905H14.1593C14.7116 13.1905 15.1593 12.7428 15.1593 12.1905V8.46289C15.1593 7.91061 14.7116 7.46289 14.1593 7.46289H12.2955", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.2 } }, { tag: "path", attrs: { stroke: "currentColor", d: "M0.840332 3.73535C0.840332 2.63078 1.73576 1.73535 2.84033 1.73535H10.2955C11.4001 1.73535 12.2955 2.63078 12.2955 3.73535V8.32676C12.2955 9.43132 11.4001 10.3268 10.2955 10.3268H5.6014L4.1695 11.7587L3.05978 10.3268H2.84033C1.73576 10.3268 0.840332 9.43133 0.840332 8.32676V3.73535Z", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.2 } }, { tag: "path", attrs: { stroke: "currentColor", d: "M6.41016 6.1311H6.76813M8.91626 6.1311H9.27424M3.90454 6.1311H4.26252", strokeLinecap: "round", strokeWidth: 1.2 } }] }, De = A(function(t, e) {
206
+ return B(W, Object.assign({}, t, {
205
207
  id: "reply-to-comment-single",
206
208
  ref: e,
207
- icon: Rt
209
+ icon: At
208
210
  }));
209
211
  });
210
- we.displayName = "ReplyToCommentSingle";
211
- var Dt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6106 15.4036C12.4766 15.4036 15.6106 12.2696 15.6106 8.40356C15.6106 4.53757 12.4766 1.40356 8.6106 1.40356C4.7446 1.40356 1.6106 4.53757 1.6106 8.40356C1.6106 12.2696 4.7446 15.4036 8.6106 15.4036ZM12.3351 6.82773C12.5694 6.59342 12.5694 6.21352 12.3351 5.9792C12.1007 5.74489 11.7208 5.74489 11.4865 5.9792L7.91079 9.55494L6.33506 7.9792C6.10074 7.74489 5.72084 7.74489 5.48653 7.9792C5.25221 8.21352 5.25221 8.59342 5.48653 8.82773L7.48653 10.8277C7.72084 11.062 8.10074 11.062 8.33506 10.8277L12.3351 6.82773Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, He = A(function(t, e) {
212
- return V(B, Object.assign({}, t, {
212
+ De.displayName = "ReplyToCommentSingle";
213
+ var Lt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6106 15.4036C12.4766 15.4036 15.6106 12.2696 15.6106 8.40356C15.6106 4.53757 12.4766 1.40356 8.6106 1.40356C4.7446 1.40356 1.6106 4.53757 1.6106 8.40356C1.6106 12.2696 4.7446 15.4036 8.6106 15.4036ZM12.3351 6.82773C12.5694 6.59342 12.5694 6.21352 12.3351 5.9792C12.1007 5.74489 11.7208 5.74489 11.4865 5.9792L7.91079 9.55494L6.33506 7.9792C6.10074 7.74489 5.72084 7.74489 5.48653 7.9792C5.25221 8.21352 5.25221 8.59342 5.48653 8.82773L7.48653 10.8277C7.72084 11.062 8.10074 11.062 8.33506 10.8277L12.3351 6.82773Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ke = A(function(t, e) {
214
+ return B(W, Object.assign({}, t, {
213
215
  id: "resolved-single",
214
216
  ref: e,
215
- icon: Dt
217
+ icon: Lt
216
218
  }));
217
219
  });
218
- He.displayName = "ResolvedSingle";
219
- var kt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "circle", attrs: { cx: 8.73, cy: 8.4, r: 6.4, stroke: "currentColor", strokeWidth: 1.2 } }, { tag: "path", attrs: { stroke: "currentColor", d: "M6.02637 8.40356L8.02637 10.4036L12.0264 6.40356", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.2 } }] }, Re = A(function(t, e) {
220
- return V(B, Object.assign({}, t, {
220
+ ke.displayName = "ResolvedSingle";
221
+ var jt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "circle", attrs: { cx: 8.73, cy: 8.4, r: 6.4, stroke: "currentColor", strokeWidth: 1.2 } }, { tag: "path", attrs: { stroke: "currentColor", d: "M6.02637 8.40356L8.02637 10.4036L12.0264 6.40356", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.2 } }] }, Ae = A(function(t, e) {
222
+ return B(W, Object.assign({}, t, {
221
223
  id: "solve-single",
222
224
  ref: e,
223
- icon: kt
225
+ icon: jt
224
226
  }));
225
227
  });
226
- Re.displayName = "SolveSingle";
227
- const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-editor-suggestion", jt = "univer-thread-comment-editor-suggestionActive", Vt = "univer-thread-comment-editor-suggestion-icon", le = {
228
- threadCommentEditorButtons: At,
229
- threadCommentEditorSuggestion: Lt,
230
- threadCommentEditorSuggestionActive: jt,
231
- threadCommentEditorSuggestionIcon: Vt
232
- }, Bt = (t) => {
228
+ Ae.displayName = "SolveSingle";
229
+ const Vt = "univer-thread-comment-editor-buttons", Bt = "univer-thread-comment-editor-suggestion", Wt = "univer-thread-comment-editor-suggestionActive", Ft = "univer-thread-comment-editor-suggestion-icon", me = {
230
+ threadCommentEditorButtons: Vt,
231
+ threadCommentEditorSuggestion: Bt,
232
+ threadCommentEditorSuggestionActive: Wt,
233
+ threadCommentEditorSuggestionIcon: Ft
234
+ }, zt = (t) => {
233
235
  const e = /@\[(.*?)\]\((.*?)\)|(\w+)/g;
234
236
  let n, r = 0;
235
237
  const o = [];
@@ -251,32 +253,32 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
251
253
  type: "text",
252
254
  content: t.substring(r)
253
255
  }), o;
254
- }, Ft = (t) => t.map((e) => {
256
+ }, Zt = (t) => t.map((e) => {
255
257
  switch (e.type) {
256
258
  case "mention":
257
259
  return `@[${e.content.label}](${e.content.id})`;
258
260
  default:
259
261
  return e.content;
260
262
  }
261
- }).join(""), De = (t) => {
263
+ }).join(""), Le = (t) => {
262
264
  const { dataStream: e, customRanges: n } = t, r = e.length - 2, o = [];
263
- let l = 0;
265
+ let i = 0;
264
266
  return n == null || n.forEach((m) => {
265
- l < m.startIndex && o.push({
267
+ i < m.startIndex && o.push({
266
268
  type: "text",
267
- content: e.slice(l, m.startIndex)
269
+ content: e.slice(i, m.startIndex)
268
270
  }), o.push({
269
271
  type: "mention",
270
272
  content: {
271
273
  label: e.slice(m.startIndex, m.endIndex).slice(1, -1),
272
274
  id: m.rangeId
273
275
  }
274
- }), l = m.endIndex;
276
+ }), i = m.endIndex;
275
277
  }), o.push({
276
278
  type: "text",
277
- content: e.slice(l, r)
279
+ content: e.slice(i, r)
278
280
  }), o;
279
- }, ke = (t) => {
281
+ }, je = (t) => {
280
282
  let e = "";
281
283
  const n = [];
282
284
  return t.forEach((r) => {
@@ -287,12 +289,12 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
287
289
  case "mention": {
288
290
  const o = e.length;
289
291
  e += `${r.content.label}`;
290
- const l = e.length;
292
+ const i = e.length;
291
293
  n.push({
292
294
  rangeId: r.content.id,
293
- rangeType: et.MENTION,
295
+ rangeType: rt.MENTION,
294
296
  startIndex: o,
295
- endIndex: l
297
+ endIndex: i
296
298
  });
297
299
  break;
298
300
  }
@@ -314,63 +316,63 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
314
316
  dataStream: e,
315
317
  customRanges: n
316
318
  };
317
- }, Wt = (t) => ({
319
+ }, Yt = (t) => ({
318
320
  display: t.label,
319
321
  id: `${t.id}`,
320
322
  raw: t
321
- }), zt = (t, e, n, r, o) => {
323
+ }), Gt = (t, e, n, r, o) => {
322
324
  var m, c;
323
- const l = (m = t.raw) == null ? void 0 : m.icon;
324
- return /* @__PURE__ */ a.createElement("div", { className: le.threadCommentEditorSuggestion }, l ? /* @__PURE__ */ a.createElement("img", { className: le.threadCommentEditorSuggestionIcon, src: l }) : null, /* @__PURE__ */ a.createElement("div", null, (c = t.display) != null ? c : t.id));
325
- }, Ae = A((t, e) => {
326
- var C;
327
- const { comment: n, onSave: r, id: o, onCancel: l, autoFocus: m, unitId: c, subUnitId: f } = t, y = S(Te), P = S(J), _ = S(se), [I, h] = k({ ...n }), [g, b] = k(!1), N = me(null), E = S(ct), H = S(ut);
328
- return at(e, () => ({
329
- reply(v) {
325
+ const i = (m = t.raw) == null ? void 0 : m.icon;
326
+ return /* @__PURE__ */ a.createElement("div", { className: me.threadCommentEditorSuggestion }, i ? /* @__PURE__ */ a.createElement("img", { className: me.threadCommentEditorSuggestionIcon, src: i }) : null, /* @__PURE__ */ a.createElement("div", null, (c = t.display) != null ? c : t.id));
327
+ }, Ve = A((t, e) => {
328
+ var v;
329
+ const { comment: n, onSave: r, id: o, onCancel: i, autoFocus: m, unitId: c, subUnitId: f } = t, y = b(Pe), P = b(X), _ = b(de), [I, h] = k({ ...n }), [g, S] = k(!1), N = ce(null), E = b(vt), H = b(Ct);
330
+ return st(e, () => ({
331
+ reply(C) {
330
332
  var d;
331
333
  h({
332
334
  ...n,
333
- text: v,
335
+ text: C,
334
336
  attachments: []
335
337
  }), (d = N.current) == null || d.inputElement.focus();
336
338
  }
337
- })), /* @__PURE__ */ a.createElement("div", { className: le.threadCommentEditor, onClick: (v) => v.preventDefault() }, /* @__PURE__ */ a.createElement(
338
- it,
339
+ })), /* @__PURE__ */ a.createElement("div", { className: me.threadCommentEditor, onClick: (C) => C.preventDefault() }, /* @__PURE__ */ a.createElement(
340
+ mt,
339
341
  {
340
342
  ref: N,
341
343
  autoFocus: m,
342
344
  style: { width: "100%" },
343
345
  placeholder: _.t("threadCommentUI.editor.placeholder"),
344
- value: I != null && I.text ? Ft(De(I.text)) : "",
345
- onChange: (v) => {
346
- v.target.value || h({ ...n, text: void 0 }), h == null || h({ ...n, text: ke(Bt(v.target.value)) });
346
+ value: I != null && I.text ? Zt(Le(I.text)) : "",
347
+ onChange: (C) => {
348
+ C.target.value || h({ ...n, text: void 0 }), h == null || h({ ...n, text: je(zt(C.target.value)) });
347
349
  },
348
350
  onFocus: () => {
349
- const v = H.getActiveRange();
350
- v && v.collapsed && E.removeAllTextRanges(), E.blur(), b(!0);
351
+ const C = H.getActiveRange();
352
+ C && C.collapsed && E.removeAllTextRanges(), E.blur(), S(!0);
351
353
  }
352
354
  },
353
355
  /* @__PURE__ */ a.createElement(
354
- lt,
356
+ dt,
355
357
  {
356
358
  key: y.trigger,
357
359
  trigger: y.trigger,
358
- data: (v, d) => y.getMentions(v, c, f).then((s) => s.map(Wt)).then(d),
359
- displayTransform: (v, d) => `@${d} `,
360
- renderSuggestion: (C = y.renderSuggestion) != null ? C : zt
360
+ data: (C, d) => y.getMentions(C, c, f).then((l) => l.map(Yt)).then(d),
361
+ displayTransform: (C, d) => `@${d} `,
362
+ renderSuggestion: (v = y.renderSuggestion) != null ? v : Gt
361
363
  }
362
364
  )
363
- ), g ? /* @__PURE__ */ a.createElement("div", { className: le.threadCommentEditorButtons }, /* @__PURE__ */ a.createElement(
364
- ae,
365
+ ), g ? /* @__PURE__ */ a.createElement("div", { className: me.threadCommentEditorButtons }, /* @__PURE__ */ a.createElement(
366
+ le,
365
367
  {
366
368
  style: { marginRight: 12 },
367
369
  onClick: () => {
368
- l == null || l(), b(!1), h({ text: void 0 }), P.executeCommand(j.id);
370
+ i == null || i(), S(!1), h({ text: void 0 }), P.executeCommand(V.id);
369
371
  }
370
372
  },
371
373
  _.t("threadCommentUI.editor.cancel")
372
374
  ), /* @__PURE__ */ a.createElement(
373
- ae,
375
+ le,
374
376
  {
375
377
  type: "primary",
376
378
  disabled: !I.text,
@@ -378,35 +380,35 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
378
380
  I.text && (r == null || r({
379
381
  ...I,
380
382
  text: I.text
381
- }), b(!1), h({ text: void 0 }));
383
+ }), S(!1), h({ text: void 0 }));
382
384
  }
383
385
  },
384
386
  _.t(o ? "threadCommentUI.editor.save" : "threadCommentUI.editor.reply")
385
387
  )) : null);
386
- }), Zt = "univer-thread-comment", Yt = "univer-thread-comment-active", Gt = "univer-thread-comment-content", Kt = "univer-thread-comment-highlight", qt = "univer-thread-comment-icon-container", Jt = "univer-thread-comment-icon", Qt = "univer-thread-comment-title", Xt = "univer-thread-comment-title-position", en = "univer-thread-comment-title-highlight", tn = "univer-thread-comment-title-position-text", nn = "univer-thread-comment-username", rn = "univer-thread-comment-item", on = "univer-thread-comment-item-head", an = "univer-thread-comment-item-title", ln = "univer-thread-comment-item-title-position", sn = "univer-thread-comment-item-title-highlight", mn = "univer-thread-comment-item-time", dn = "univer-thread-comment-item-content", cn = "univer-thread-comment-item-at", u = {
387
- threadComment: Zt,
388
- threadCommentActive: Yt,
389
- threadCommentContent: Gt,
390
- threadCommentHighlight: Kt,
391
- threadCommentIconContainer: qt,
392
- threadCommentIcon: Jt,
393
- threadCommentTitle: Qt,
394
- threadCommentTitlePosition: Xt,
395
- threadCommentTitleHighlight: en,
396
- threadCommentTitlePositionText: tn,
397
- threadCommentUsername: nn,
398
- threadCommentItem: rn,
399
- threadCommentItemHead: on,
400
- threadCommentItemTitle: an,
401
- threadCommentItemTitlePosition: ln,
402
- threadCommentItemTitleHighlight: sn,
403
- threadCommentItemTime: mn,
404
- threadCommentItemContent: dn,
405
- threadCommentItemAt: cn
406
- }, Le = "__mock__", un = (t) => {
407
- const { item: e, unitId: n, subUnitId: r, editing: o, onEditingChange: l, onReply: m, resolved: c, isRoot: f, onClose: y, onDeleteComment: P } = t, _ = S(J), I = S(se), h = S(Ce), g = h.getUser(e.personId), b = L(h.currentUser$), N = (b == null ? void 0 : b.userID) === e.personId, E = e.id === Le, [H, C] = k(!1), v = () => {
388
+ }), Kt = "univer-thread-comment", qt = "univer-thread-comment-active", Jt = "univer-thread-comment-content", Qt = "univer-thread-comment-highlight", Xt = "univer-thread-comment-icon-container", en = "univer-thread-comment-icon", tn = "univer-thread-comment-title", nn = "univer-thread-comment-title-position", rn = "univer-thread-comment-title-highlight", on = "univer-thread-comment-title-position-text", an = "univer-thread-comment-username", ln = "univer-thread-comment-item", sn = "univer-thread-comment-item-head", mn = "univer-thread-comment-item-title", dn = "univer-thread-comment-item-title-position", cn = "univer-thread-comment-item-title-highlight", un = "univer-thread-comment-item-time", hn = "univer-thread-comment-item-content", vn = "univer-thread-comment-item-at", u = {
389
+ threadComment: Kt,
390
+ threadCommentActive: qt,
391
+ threadCommentContent: Jt,
392
+ threadCommentHighlight: Qt,
393
+ threadCommentIconContainer: Xt,
394
+ threadCommentIcon: en,
395
+ threadCommentTitle: tn,
396
+ threadCommentTitlePosition: nn,
397
+ threadCommentTitleHighlight: rn,
398
+ threadCommentTitlePositionText: on,
399
+ threadCommentUsername: an,
400
+ threadCommentItem: ln,
401
+ threadCommentItemHead: sn,
402
+ threadCommentItemTitle: mn,
403
+ threadCommentItemTitlePosition: dn,
404
+ threadCommentItemTitleHighlight: cn,
405
+ threadCommentItemTime: un,
406
+ threadCommentItemContent: hn,
407
+ threadCommentItemAt: vn
408
+ }, Be = "__mock__", Cn = (t) => {
409
+ const { item: e, unitId: n, subUnitId: r, editing: o, onEditingChange: i, onReply: m, resolved: c, isRoot: f, onClose: y, onDeleteComment: P } = t, _ = b(X), I = b(de), h = b(fe), g = h.getUser(e.personId), S = j(h.currentUser$), N = (S == null ? void 0 : S.userID) === e.personId, E = e.id === Be, [H, v] = k(!1), C = () => {
408
410
  (P == null ? void 0 : P(e)) !== !1 && (_.executeCommand(
409
- f ? Ee.id : Ye.id,
411
+ f ? _e.id : qe.id,
410
412
  {
411
413
  unitId: n,
412
414
  subUnitId: r,
@@ -414,52 +416,52 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
414
416
  }
415
417
  ), f && (y == null || y()));
416
418
  };
417
- return /* @__PURE__ */ a.createElement("div", { className: u.threadCommentItem, onMouseLeave: () => C(!1), onMouseEnter: () => C(!0) }, /* @__PURE__ */ a.createElement("img", { className: u.threadCommentItemHead, src: g == null ? void 0 : g.avatar }), /* @__PURE__ */ a.createElement("div", { className: u.threadCommentItemTitle }, /* @__PURE__ */ a.createElement("div", { className: u.threadCommentUsername }, (g == null ? void 0 : g.name) || " "), /* @__PURE__ */ a.createElement("div", null, E || c ? null : H ? /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIcon, onClick: () => m(g) }, /* @__PURE__ */ a.createElement(we, null)) : null, N && !E && !c ? /* @__PURE__ */ a.createElement(
418
- st,
419
+ return /* @__PURE__ */ a.createElement("div", { className: u.threadCommentItem, onMouseLeave: () => v(!1), onMouseEnter: () => v(!0) }, /* @__PURE__ */ a.createElement("img", { className: u.threadCommentItemHead, src: g == null ? void 0 : g.avatar }), /* @__PURE__ */ a.createElement("div", { className: u.threadCommentItemTitle }, /* @__PURE__ */ a.createElement("div", { className: u.threadCommentUsername }, (g == null ? void 0 : g.name) || " "), /* @__PURE__ */ a.createElement("div", null, E || c ? null : H ? /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIcon, onClick: () => m(g) }, /* @__PURE__ */ a.createElement(De, null)) : null, N && !E && !c ? /* @__PURE__ */ a.createElement(
420
+ ct,
419
421
  {
420
- overlay: /* @__PURE__ */ a.createElement(mt, null, /* @__PURE__ */ a.createElement(ge, { key: "edit", onClick: () => l == null ? void 0 : l(!0) }, I.t("threadCommentUI.item.edit")), /* @__PURE__ */ a.createElement(ge, { key: "delete", onClick: v }, I.t("threadCommentUI.item.delete")))
422
+ overlay: /* @__PURE__ */ a.createElement(ut, null, /* @__PURE__ */ a.createElement(Se, { key: "edit", onClick: () => i == null ? void 0 : i(!0) }, I.t("threadCommentUI.item.edit")), /* @__PURE__ */ a.createElement(Se, { key: "delete", onClick: C }, I.t("threadCommentUI.item.delete")))
421
423
  },
422
- /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIcon }, /* @__PURE__ */ a.createElement($e, null))
424
+ /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIcon }, /* @__PURE__ */ a.createElement(Re, null))
423
425
  ) : null)), /* @__PURE__ */ a.createElement("div", { className: u.threadCommentItemTime }, e.dT), o ? /* @__PURE__ */ a.createElement(
424
- Ae,
426
+ Ve,
425
427
  {
426
428
  id: e.id,
427
429
  comment: e,
428
- onCancel: () => l == null ? void 0 : l(!1),
430
+ onCancel: () => i == null ? void 0 : i(!1),
429
431
  autoFocus: !0,
430
432
  unitId: n,
431
433
  subUnitId: r,
432
- onSave: ({ text: d, attachments: s }) => {
433
- l == null || l(!1), _.executeCommand(
434
- ze.id,
434
+ onSave: ({ text: d, attachments: l }) => {
435
+ i == null || i(!1), _.executeCommand(
436
+ Ge.id,
435
437
  {
436
438
  unitId: n,
437
439
  subUnitId: r,
438
440
  payload: {
439
441
  commentId: e.id,
440
442
  text: d,
441
- attachments: s
443
+ attachments: l
442
444
  }
443
445
  }
444
446
  );
445
447
  }
446
448
  }
447
- ) : /* @__PURE__ */ a.createElement("div", { className: u.threadCommentItemContent }, De(e.text).map((d, s) => {
449
+ ) : /* @__PURE__ */ a.createElement("div", { className: u.threadCommentItemContent }, Le(e.text).map((d, l) => {
448
450
  switch (d.type) {
449
451
  case "mention":
450
- return /* @__PURE__ */ a.createElement("a", { className: u.threadCommentItemAt, key: s }, "@", d.content.label, " ");
452
+ return /* @__PURE__ */ a.createElement("a", { className: u.threadCommentItemAt, key: l }, "@", d.content.label, " ");
451
453
  default:
452
454
  return d.content;
453
455
  }
454
456
  })));
455
- }, hn = (t) => {
456
- var Y, G, K;
457
+ }, fn = (t) => {
458
+ var K, F, ne;
457
459
  const {
458
460
  id: e,
459
461
  unitId: n,
460
462
  subUnitId: r,
461
463
  refStr: o,
462
- showEdit: l = !0,
464
+ showEdit: i = !0,
463
465
  onClick: m,
464
466
  showHighlight: c,
465
467
  onClose: f,
@@ -469,20 +471,20 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
469
471
  onMouseEnter: I,
470
472
  onMouseLeave: h,
471
473
  onAddComment: g,
472
- onDeleteComment: b,
474
+ onDeleteComment: S,
473
475
  onResolve: N
474
- } = t, E = S(Se), [H, C] = k(!1), [v, d] = k("");
475
- L(E.commentMap$);
476
- const s = e ? E.getCommentWithChildren(n, r, e) : null, R = S(J), de = S(Ce), p = s == null ? void 0 : s.root.resolved, M = L(de.currentUser$), W = me(null), Q = [
477
- ...s ? [s.root] : (
476
+ } = t, E = b(xe), [H, v] = k(!1), [C, d] = k("");
477
+ j(E.commentMap$);
478
+ const l = e ? E.getCommentWithChildren(n, r, e) : null, R = b(X), ue = b(fe), p = l == null ? void 0 : l.root.resolved, M = j(ue.currentUser$), Z = ce(null), ee = [
479
+ ...l ? [l.root] : (
478
480
  // mock empty comment
479
481
  [{
480
- id: Le,
482
+ id: Be,
481
483
  text: {
482
484
  dataStream: `
483
485
  \r`
484
486
  },
485
- personId: (Y = M == null ? void 0 : M.userID) != null ? Y : "",
487
+ personId: (K = M == null ? void 0 : M.userID) != null ? K : "",
486
488
  ref: o != null ? o : "",
487
489
  dT: "",
488
490
  unitId: n,
@@ -490,21 +492,21 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
490
492
  threadId: ""
491
493
  }]
492
494
  ),
493
- ...(G = s == null ? void 0 : s.children) != null ? G : []
494
- ], z = (x) => {
495
- x.stopPropagation(), p ? R.executeCommand(j.id, {
495
+ ...(F = l == null ? void 0 : l.children) != null ? F : []
496
+ ], Y = (x) => {
497
+ x.stopPropagation(), p ? R.executeCommand(V.id, {
496
498
  unitId: n,
497
499
  subUnitId: r,
498
500
  commentId: e
499
- }) : R.executeCommand(j.id), R.executeCommand(Ze.id, {
501
+ }) : R.executeCommand(V.id), R.executeCommand(Ke.id, {
500
502
  unitId: n,
501
503
  subUnitId: r,
502
504
  commentId: e,
503
505
  resolved: !p
504
506
  }), N == null || N(!p);
505
- }, X = (x) => {
506
- x.stopPropagation(), R.executeCommand(j.id), !(s != null && s.root && (b == null ? void 0 : b(s.root)) === !1) && (R.executeCommand(
507
- Ee.id,
507
+ }, te = (x) => {
508
+ x.stopPropagation(), R.executeCommand(V.id), !(l != null && l.root && (S == null ? void 0 : S(l.root)) === !1) && (R.executeCommand(
509
+ _e.id,
508
510
  {
509
511
  unitId: n,
510
512
  subUnitId: r,
@@ -512,115 +514,116 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
512
514
  }
513
515
  ), f == null || f());
514
516
  };
515
- ue(() => h == null ? void 0 : h(), []);
516
- const O = y((K = s == null ? void 0 : s.root.subUnitId) != null ? K : r), Z = l && !v && !p, D = `${o || (s == null ? void 0 : s.root.ref)}${O ? " · " : ""}${O}`;
517
+ ve(() => h == null ? void 0 : h(), []);
518
+ const U = y((ne = l == null ? void 0 : l.root.subUnitId) != null ? ne : r), G = i && !C && !p, D = `${o || (l == null ? void 0 : l.root.ref) || ""}${U ? " · " : ""}${U}`;
517
519
  return /* @__PURE__ */ a.createElement(
518
520
  "div",
519
521
  {
520
- className: dt(u.threadComment, {
522
+ className: ht(u.threadComment, {
521
523
  [u.threadCommentActive]: !p && (c || H || P === "cell")
522
524
  }),
523
525
  onClick: m,
524
526
  id: `${P}-${n}-${r}-${e}`,
525
527
  onMouseEnter: () => {
526
- I == null || I(), C(!0);
528
+ I == null || I(), v(!0);
527
529
  },
528
530
  onMouseLeave: () => {
529
- h == null || h(), C(!1);
531
+ h == null || h(), v(!1);
530
532
  }
531
533
  },
532
534
  !p && c ? /* @__PURE__ */ a.createElement("div", { className: u.threadCommentHighlight }) : null,
533
- /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitle }, /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitlePosition }, /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitleHighlight }), /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitlePositionText }, D)), s ? /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIconContainer }, /* @__PURE__ */ a.createElement(
535
+ /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitle }, /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitlePosition }, /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitleHighlight }), /* @__PURE__ */ a.createElement("div", { className: u.threadCommentTitlePositionText }, D)), l ? /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIconContainer }, /* @__PURE__ */ a.createElement(
534
536
  "div",
535
537
  {
536
- onClick: z,
538
+ onClick: Y,
537
539
  className: u.threadCommentIcon,
538
540
  style: { color: p ? "rgb(var(--green-500))" : "" }
539
541
  },
540
- p ? /* @__PURE__ */ a.createElement(He, null) : /* @__PURE__ */ a.createElement(Re, null)
541
- ), (M == null ? void 0 : M.userID) === s.root.personId ? /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIcon, onClick: X }, /* @__PURE__ */ a.createElement(Pe, null)) : null) : null),
542
- /* @__PURE__ */ a.createElement("div", { className: u.threadCommentContent }, Q.map(
542
+ p ? /* @__PURE__ */ a.createElement(ke, null) : /* @__PURE__ */ a.createElement(Ae, null)
543
+ ), (M == null ? void 0 : M.userID) === l.root.personId ? /* @__PURE__ */ a.createElement("div", { className: u.threadCommentIcon, onClick: te }, /* @__PURE__ */ a.createElement(we, null)) : null) : null),
544
+ /* @__PURE__ */ a.createElement("div", { className: u.threadCommentContent }, ee.map(
543
545
  (x) => /* @__PURE__ */ a.createElement(
544
- un,
546
+ Cn,
545
547
  {
546
548
  onClose: f,
547
549
  unitId: n,
548
550
  subUnitId: r,
549
551
  item: x,
550
552
  key: x.id,
551
- isRoot: x.id === (s == null ? void 0 : s.root.id),
552
- editing: v === x.id,
553
- resolved: s == null ? void 0 : s.root.resolved,
554
- onEditingChange: (i) => {
555
- d(i ? x.id : "");
553
+ isRoot: x.id === (l == null ? void 0 : l.root.id),
554
+ editing: C === x.id,
555
+ resolved: l == null ? void 0 : l.root.resolved,
556
+ onEditingChange: ($) => {
557
+ d($ ? x.id : "");
556
558
  },
557
- onReply: (i) => {
558
- i && requestAnimationFrame(() => {
559
- var U;
560
- (U = W.current) == null || U.reply(ke([{
559
+ onReply: ($) => {
560
+ $ && requestAnimationFrame(() => {
561
+ var L;
562
+ (L = Z.current) == null || L.reply(je([{
561
563
  type: "mention",
562
564
  content: {
563
- id: i.userID,
564
- label: i.name
565
+ id: $.userID,
566
+ label: $.name
565
567
  }
566
568
  }]));
567
569
  });
568
570
  },
569
571
  onAddComment: g,
570
- onDeleteComment: b
572
+ onDeleteComment: S
571
573
  }
572
574
  )
573
575
  )),
574
- Z ? /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement(
575
- Ae,
576
+ G ? /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement(
577
+ Ve,
576
578
  {
577
579
  key: `${_}`,
578
- ref: W,
580
+ ref: Z,
579
581
  unitId: n,
580
582
  subUnitId: r,
581
- onSave: ({ text: x, attachments: i }) => {
582
- const U = {
583
+ onSave: ({ text: x, attachments: $ }) => {
584
+ const L = {
583
585
  text: x,
584
- attachments: i,
585
- dT: ht(),
586
- id: tt.generateRandomId(),
586
+ attachments: $,
587
+ dT: ft(),
588
+ id: ot.generateRandomId(),
587
589
  ref: o,
588
590
  personId: M == null ? void 0 : M.userID,
589
- parentId: s == null ? void 0 : s.root.id,
591
+ parentId: l == null ? void 0 : l.root.id,
590
592
  unitId: n,
591
593
  subUnitId: r,
592
- threadId: s == null ? void 0 : s.root.threadId
594
+ threadId: l == null ? void 0 : l.root.threadId
593
595
  };
594
- (g == null ? void 0 : g(U)) !== !1 && R.executeCommand(
595
- We.id,
596
+ (g == null ? void 0 : g(L)) !== !1 && R.executeCommand(
597
+ Ye.id,
596
598
  {
597
599
  unitId: n,
598
600
  subUnitId: r,
599
- comment: U
601
+ comment: L
600
602
  }
601
603
  );
602
604
  },
603
- autoFocus: _ || !s,
605
+ autoFocus: _ || !l,
604
606
  onCancel: () => {
605
- s || f == null || f();
607
+ l || f == null || f();
606
608
  }
607
609
  }
608
610
  )) : null
609
611
  );
610
- }, Cn = "univer-thread-comment-panel", vn = "univer-thread-comment", fn = "univer-thread-comment-panel-forms", gn = "univer-select", pn = "univer-thread-comment-panel-empty", In = "univer-thread-comment-panel-add", re = {
611
- threadCommentPanel: Cn,
612
- threadComment: vn,
613
- threadCommentPanelForms: fn,
614
- select: gn,
615
- threadCommentPanelEmpty: pn,
616
- threadCommentPanelAdd: In
617
- }, wn = (t) => {
612
+ }, gn = "univer-thread-comment-panel", pn = "univer-thread-comment", In = "univer-thread-comment-panel-forms", Sn = "univer-select", bn = "univer-thread-comment-panel-empty", En = "univer-thread-comment-panel-add", yn = "univer-thread-comment-panel-solved", Q = {
613
+ threadCommentPanel: gn,
614
+ threadComment: pn,
615
+ threadCommentPanelForms: In,
616
+ select: Sn,
617
+ threadCommentPanelEmpty: bn,
618
+ threadCommentPanelAdd: En,
619
+ threadCommentPanelSolved: yn
620
+ }, kn = (t) => {
618
621
  const {
619
622
  unitId: e,
620
623
  subUnitId$: n,
621
624
  type: r,
622
625
  onAdd: o,
623
- getSubUnitName: l,
626
+ getSubUnitName: i,
624
627
  onResolve: m,
625
628
  sortComments: c,
626
629
  onItemLeave: f,
@@ -630,136 +633,138 @@ const At = "univer-thread-comment-editor-buttons", Lt = "univer-thread-comment-e
630
633
  onAddComment: I,
631
634
  onDeleteComment: h,
632
635
  showComments: g
633
- } = t, [b, N] = k("all"), [E, H] = k("all"), C = S(se), v = S(Ce), d = S(Se), [s, R] = k(() => d.getUnit(e)), de = S(F), p = L(de.activeCommentId$), M = L(d.commentUpdate$), W = S(J), Q = L(n), z = me(!0), X = "panel", O = L(v.currentUser$), Z = ce(() => {
634
- var te, q;
635
- const i = (b === "all" ? s.map(($) => $[1]).flat() : (q = (te = s.find(($) => $[0] === Q)) == null ? void 0 : te[1]) != null ? q : []).filter(($) => !$.parentId), U = c != null ? c : ($) => $, ee = i;
636
+ } = t, [S, N] = k("all"), [E, H] = k("all"), v = b(de), C = b(fe), d = b(xe), [l, R] = k(() => d.getUnit(e)), ue = b(z), p = j(ue.activeCommentId$), M = j(d.commentUpdate$), Z = b(X), ee = j(n), Y = ce(!0), te = "panel", U = j(C.currentUser$), G = he(() => {
637
+ var oe, J;
638
+ const s = (S === "all" ? l.map((O) => O[1]).flat() : (J = (oe = l.find((O) => O[0] === ee)) == null ? void 0 : oe[1]) != null ? J : []).filter((O) => !O.parentId), q = c != null ? c : (O) => O, re = s;
636
639
  if (g) {
637
- const $ = /* @__PURE__ */ new Map();
638
- return ee.forEach((ne) => {
639
- $.set(ne.id, ne);
640
- }), [...g, ""].map((ne) => $.get(ne)).filter(Boolean);
640
+ const O = /* @__PURE__ */ new Map();
641
+ return re.forEach((ae) => {
642
+ O.set(ae.id, ae);
643
+ }), [...g, ""].map((ae) => O.get(ae)).filter(Boolean);
641
644
  } else
642
- return U(ee);
643
- }, [g, b, s, c, Q]), D = ce(() => [
644
- ...Z.filter((i) => !i.resolved),
645
- ...Z.filter((i) => i.resolved)
646
- ], [Z]), Y = ce(() => E === "resolved" ? D.filter((i) => i.resolved) : E === "unsolved" ? D.filter((i) => !i.resolved) : E === "concern_me" && O != null && O.userID ? D.map((i) => d.getCommentWithChildren(i.unitId, i.subUnitId, i.id)).map((i) => i != null && i.relativeUsers.has(O.userID) ? i.root : null).filter(Boolean) : D, [D, O == null ? void 0 : O.userID, E, d]), G = _ ? [_, ...Y] : Y, K = E !== "all" || b !== "all", x = () => {
645
+ return q(re);
646
+ }, [g, S, l, c, ee]), D = he(() => [
647
+ ...G.filter((s) => !s.resolved),
648
+ ...G.filter((s) => s.resolved)
649
+ ], [G]), K = he(() => E === "resolved" ? D.filter((s) => s.resolved) : E === "unsolved" ? D.filter((s) => !s.resolved) : E === "concern_me" && U != null && U.userID ? D.map((s) => d.getCommentWithChildren(s.unitId, s.subUnitId, s.id)).map((s) => s != null && s.relativeUsers.has(U.userID) ? s.root : null).filter(Boolean) : D, [D, U == null ? void 0 : U.userID, E, d]), F = _ ? [_, ...K] : K, ne = F.filter((s) => !s.resolved), x = F.filter((s) => s.resolved), $ = E !== "all" || S !== "all", L = () => {
647
650
  H("all"), N("all");
648
651
  };
649
- return ue(() => {
652
+ ve(() => {
650
653
  e && R(
651
654
  d.getUnit(e)
652
655
  );
653
- }, [e, d, M]), ue(() => {
654
- var q;
656
+ }, [e, d, M]), ve(() => {
657
+ var J;
655
658
  if (!p)
656
659
  return;
657
- if (!z.current) {
658
- z.current = !0;
660
+ if (!Y.current) {
661
+ Y.current = !0;
659
662
  return;
660
663
  }
661
- const { unitId: i, subUnitId: U, commentId: ee } = p, te = `${X}-${i}-${U}-${ee}`;
662
- (q = document.getElementById(te)) == null || q.scrollIntoView({ block: "center" });
663
- }, [p]), /* @__PURE__ */ a.createElement("div", { className: re.threadCommentPanel }, /* @__PURE__ */ a.createElement("div", { className: re.threadCommentPanelForms }, r === he.UNIVER_SHEET ? /* @__PURE__ */ a.createElement(
664
- pe,
664
+ const { unitId: s, subUnitId: q, commentId: re } = p, oe = `${te}-${s}-${q}-${re}`;
665
+ (J = document.getElementById(oe)) == null || J.scrollIntoView({ block: "center" });
666
+ }, [p]);
667
+ const pe = (s) => /* @__PURE__ */ a.createElement(
668
+ fn,
669
+ {
670
+ prefix: te,
671
+ getSubUnitName: i,
672
+ key: s.id,
673
+ id: s.id,
674
+ unitId: s.unitId,
675
+ subUnitId: s.subUnitId,
676
+ refStr: s.ref,
677
+ type: r,
678
+ showEdit: (p == null ? void 0 : p.commentId) === s.id,
679
+ showHighlight: (p == null ? void 0 : p.commentId) === s.id,
680
+ onClick: () => {
681
+ Y.current = !1, s.resolved ? Z.executeCommand(V.id) : Z.executeCommand(
682
+ V.id,
683
+ {
684
+ unitId: s.unitId,
685
+ subUnitId: s.subUnitId,
686
+ commentId: s.id,
687
+ temp: !1
688
+ }
689
+ );
690
+ },
691
+ onMouseEnter: () => y == null ? void 0 : y(s),
692
+ onMouseLeave: () => f == null ? void 0 : f(s),
693
+ onAddComment: I,
694
+ onDeleteComment: h,
695
+ onResolve: (q) => m == null ? void 0 : m(s.id, q)
696
+ }
697
+ );
698
+ return /* @__PURE__ */ a.createElement("div", { className: Q.threadCommentPanel }, /* @__PURE__ */ a.createElement("div", { className: Q.threadCommentPanelForms }, r === Ce.UNIVER_SHEET ? /* @__PURE__ */ a.createElement(
699
+ be,
665
700
  {
666
701
  borderless: !0,
667
- value: b,
668
- onChange: (i) => N(i),
702
+ value: S,
703
+ onChange: (s) => N(s),
669
704
  options: [
670
705
  {
671
706
  value: "current",
672
- label: C.t("threadCommentUI.filter.sheet.current")
707
+ label: v.t("threadCommentUI.filter.sheet.current")
673
708
  },
674
709
  {
675
710
  value: "all",
676
- label: C.t("threadCommentUI.filter.sheet.all")
711
+ label: v.t("threadCommentUI.filter.sheet.all")
677
712
  }
678
713
  ]
679
714
  }
680
715
  ) : null, /* @__PURE__ */ a.createElement(
681
- pe,
716
+ be,
682
717
  {
683
718
  borderless: !0,
684
719
  value: E,
685
- onChange: (i) => H(i),
720
+ onChange: (s) => H(s),
686
721
  options: [
687
722
  {
688
723
  value: "all",
689
- label: C.t("threadCommentUI.filter.status.all")
724
+ label: v.t("threadCommentUI.filter.status.all")
690
725
  },
691
726
  {
692
727
  value: "resolved",
693
- label: C.t("threadCommentUI.filter.status.resolved")
728
+ label: v.t("threadCommentUI.filter.status.resolved")
694
729
  },
695
730
  {
696
731
  value: "unsolved",
697
- label: C.t("threadCommentUI.filter.status.unsolved")
732
+ label: v.t("threadCommentUI.filter.status.unsolved")
698
733
  },
699
734
  {
700
735
  value: "concern_me",
701
- label: C.t("threadCommentUI.filter.status.concernMe")
736
+ label: v.t("threadCommentUI.filter.status.concernMe")
702
737
  }
703
738
  ]
704
739
  }
705
- )), G.map((i) => /* @__PURE__ */ a.createElement(
706
- hn,
707
- {
708
- prefix: X,
709
- getSubUnitName: l,
710
- key: i.id,
711
- id: i.id,
712
- unitId: i.unitId,
713
- subUnitId: i.subUnitId,
714
- refStr: i.ref,
715
- type: r,
716
- showEdit: (p == null ? void 0 : p.commentId) === i.id,
717
- showHighlight: (p == null ? void 0 : p.commentId) === i.id,
718
- onClick: () => {
719
- z.current = !1, i.resolved ? W.executeCommand(j.id) : W.executeCommand(
720
- j.id,
721
- {
722
- unitId: i.unitId,
723
- subUnitId: i.subUnitId,
724
- commentId: i.id,
725
- temp: !1
726
- }
727
- );
728
- },
729
- onMouseEnter: () => y == null ? void 0 : y(i),
730
- onMouseLeave: () => f == null ? void 0 : f(i),
731
- onAddComment: I,
732
- onDeleteComment: h,
733
- onResolve: (U) => m == null ? void 0 : m(i.id, U)
734
- }
735
- )), G.length ? null : /* @__PURE__ */ a.createElement("div", { className: re.threadCommentPanelEmpty }, K ? C.t("threadCommentUI.panel.filterEmpty") : C.t("threadCommentUI.panel.empty"), K ? /* @__PURE__ */ a.createElement(
736
- ae,
740
+ )), ne.map(pe), x.length ? /* @__PURE__ */ a.createElement("div", { className: Q.threadCommentPanelSolved }, "已解决") : null, x.map(pe), F.length ? null : /* @__PURE__ */ a.createElement("div", { className: Q.threadCommentPanelEmpty }, $ ? v.t("threadCommentUI.panel.filterEmpty") : v.t("threadCommentUI.panel.empty"), $ ? /* @__PURE__ */ a.createElement(
741
+ le,
737
742
  {
738
- onClick: x,
743
+ onClick: L,
739
744
  type: "link"
740
745
  },
741
- C.t("threadCommentUI.panel.reset")
746
+ v.t("threadCommentUI.panel.reset")
742
747
  ) : /* @__PURE__ */ a.createElement(
743
- ae,
748
+ le,
744
749
  {
745
750
  id: "thread-comment-add",
746
- className: re.threadCommentPanelAdd,
751
+ className: Q.threadCommentPanelAdd,
747
752
  type: "primary",
748
753
  onClick: o,
749
754
  disabled: P
750
755
  },
751
- /* @__PURE__ */ a.createElement(Oe, null),
752
- C.t("threadCommentUI.panel.addComment")
756
+ /* @__PURE__ */ a.createElement(He, null),
757
+ v.t("threadCommentUI.panel.addComment")
753
758
  )));
754
759
  };
755
760
  export {
756
- Te as IThreadCommentMentionDataService,
757
- j as SetActiveCommentOperation,
758
- Ct as THREAD_COMMENT_PANEL,
759
- wn as ThreadCommentPanel,
760
- F as ThreadCommentPanelService,
761
- hn as ThreadCommentTree,
762
- It as ToggleSheetCommentPanelOperation,
763
- ie as UniverThreadCommentUIPlugin,
764
- ht as getDT
761
+ Pe as IThreadCommentMentionDataService,
762
+ V as SetActiveCommentOperation,
763
+ gt as THREAD_COMMENT_PANEL,
764
+ kn as ThreadCommentPanel,
765
+ z as ThreadCommentPanelService,
766
+ fn as ThreadCommentTree,
767
+ Et as ToggleSheetCommentPanelOperation,
768
+ se as UniverThreadCommentUIPlugin,
769
+ ft as getDT
765
770
  };