@univerjs/sheets-hyper-link-ui 0.8.2 → 0.8.3-nightly.202507010644

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/index.js CHANGED
@@ -1,21 +1,22 @@
1
1
  var qn = Object.defineProperty;
2
2
  var Jn = (t, e, n) => e in t ? qn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var $ = (t, e, n) => Jn(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { Tools as Ce, IUniverInstanceService as K, ICommandService as ne, Inject as y, LocaleService as ut, IConfigService as Cn, UniverInstanceType as k, isValidRange as Sn, RANGE_TYPE as an, Rectangle as ye, Injector as lt, Disposable as Y, Range as yn, ObjectMatrix as Qn, IContextService as er, ThemeService as tr, DataStreamTreeTokenType as cn, CustomRangeType as xe, BuildTextUtils as _e, ColorKit as nr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as x, DisposableCollection as rr, FOCUSING_SHEET as Ct, generateRandomId as ir, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Se, DataValidationType as St, CommandType as dt, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as sr, IPermissionService as or, InterceptorEffectEnum as ar, DependentOn as cr, Plugin as ur, merge as lr } from "@univerjs/core";
5
- import { SetSelectionsOperation as En, SetWorksheetActiveOperation as Rn, rangeToDiscreteRange as dr, SheetsSelectionsService as kt, getSheetCommandTarget as Tt, RangeProtectionPermissionEditPoint as Ot, WorksheetEditPermission as xt, WorksheetSetCellValuePermission as Pn, WorksheetInsertHyperlinkPermission as Nt, WorkbookEditablePermission as Mt, SheetPermissionCheckController as Ln, RangeProtectionPermissionViewPoint as pr, WorksheetViewPermission as hr, WorkbookViewPermission as gr, WorkbookCopyPermission as vr, WorksheetCopyPermission as mr, ClearSelectionContentCommand as fr, ClearSelectionAllCommand as _r, ClearSelectionFormatCommand as Ir, SheetInterceptorService as Cr, INTERCEPTOR_POINT as Sr } from "@univerjs/sheets";
6
- import { SheetHyperLinkType as C, ERROR_RANGE as yr, HyperLinkModel as pt, RemoveHyperLinkMutation as Ne, AddHyperLinkMutation as Me, SheetsHyperLinkParserService as Ut, UpdateRichHyperLinkCommand as Er, UpdateHyperLinkCommand as Rr, AddRichHyperLinkCommand as Pr, AddHyperLinkCommand as Lr, CancelRichHyperLinkCommand as wr, CancelHyperLinkCommand as br, UniverSheetsHyperLinkPlugin as kr } from "@univerjs/sheets-hyper-link";
7
- import { ScrollToRangeOperation as wn, ISheetClipboardService as Tr, virtualizeDiscreteRanges as Pt, COPY_TYPE as Or, PREDEFINED_HOOK_NAME as Be, getRepeatRange as xr, IEditorBridgeService as te, IMarkSelectionService as Nr, SheetCanvasPopManagerService as Mr, getEditingCustomRangePosition as Ur, getCustomRangePosition as Hr, whenSheetEditorFocused as Dr, getCurrentRangeDisable$ as Ar, IAutoFillService as Vr, APPLY_TYPE as be, getAutoFillRepeatRange as $r, HoverManagerService as Br, HoverRenderController as Fr, SheetSkeletonManagerService as un } from "@univerjs/sheets-ui";
8
- import { MessageType as Te, clsx as We, FormLayout as me, Input as ln, Select as yt, Button as dn, borderClassName as bn, Tooltip as Fe } from "@univerjs/design";
9
- import { IDefinedNamesService as kn, deserializeRangeWithSheet as Ze, serializeRangeWithSheet as jr, serializeRangeToRefString as Wr, serializeRange as Zr } from "@univerjs/engine-formula";
10
- import { IMessageService as Tn, useDependency as S, useObservable as Gr, IZenZoneService as ht, useEvent as Kr, KeyCode as Lt, MenuItemType as On, MetaKeys as Yr, getMenuHiddenObservable as gt, ContextMenuPosition as zr, ContextMenuGroup as Xr, RibbonInsertGroup as qr, ComponentManager as Jr, IMenuManagerService as Qr, IShortcutService as ei } from "@univerjs/ui";
11
- import { DocSelectionRenderService as xn, DocBackScrollRenderController as ti, DocCanvasPopManagerService as ni, calcDocRangePositions as ri, DocEventManagerService as pn, UniverDocsUIPlugin as ii } from "@univerjs/docs-ui";
12
- import { IRenderManagerService as De } from "@univerjs/engine-render";
13
- import { Subject as si, BehaviorSubject as oi, of as ae, map as Ht, switchMap as Ue, combineLatest as ai, debounceTime as Ge, Observable as ci } from "rxjs";
4
+ import { Tools as Ce, IUniverInstanceService as K, ICommandService as ne, Inject as y, LocaleService as ut, IConfigService as Cn, UniverInstanceType as k, isValidRange as Sn, RANGE_TYPE as an, Rectangle as ye, Disposable as Y, IContextService as Qn, ThemeService as er, DataStreamTreeTokenType as cn, CustomRangeType as xe, BuildTextUtils as _e, ColorKit as tr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as x, DisposableCollection as nr, FOCUSING_SHEET as Ct, generateRandomId as rr, Injector as lt, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Se, DataValidationType as St, CommandType as dt, Range as yn, ObjectMatrix as ir, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as sr, IPermissionService as or, InterceptorEffectEnum as ar, DependentOn as cr, Plugin as ur, merge as lr } from "@univerjs/core";
5
+ import { SetSelectionsOperation as En, SetWorksheetActiveOperation as Rn, SheetsSelectionsService as kt, getSheetCommandTarget as Tt, rangeToDiscreteRange as dr, RangeProtectionPermissionEditPoint as Ot, WorksheetEditPermission as xt, WorksheetSetCellValuePermission as Pn, WorksheetInsertHyperlinkPermission as Nt, WorkbookEditablePermission as Mt, SheetPermissionCheckController as Ln, RangeProtectionPermissionViewPoint as pr, WorksheetViewPermission as hr, WorkbookViewPermission as gr, WorkbookCopyPermission as vr, WorksheetCopyPermission as mr, ClearSelectionContentCommand as fr, ClearSelectionAllCommand as _r, ClearSelectionFormatCommand as Ir, SheetInterceptorService as Cr, INTERCEPTOR_POINT as Sr } from "@univerjs/sheets";
6
+ import { ScrollToRangeOperation as wn, IEditorBridgeService as te, IMarkSelectionService as yr, SheetCanvasPopManagerService as Er, getEditingCustomRangePosition as Rr, getCustomRangePosition as Pr, ISheetClipboardService as Lr, virtualizeDiscreteRanges as Pt, COPY_TYPE as wr, PREDEFINED_HOOK_NAME as Be, getRepeatRange as br, whenSheetEditorFocused as kr, getCurrentRangeDisable$ as Tr, IAutoFillService as Or, APPLY_TYPE as be, getAutoFillRepeatRange as xr, HoverManagerService as Nr, HoverRenderController as Mr, SheetSkeletonManagerService as un } from "@univerjs/sheets-ui";
14
7
  import { DocSelectionManagerService as He } from "@univerjs/docs";
15
- import { jsxs as Ie, jsx as m, Fragment as ui } from "react/jsx-runtime";
16
- import { RangeSelector as li } from "@univerjs/sheets-formula-ui";
8
+ import { DocSelectionRenderService as bn, DocBackScrollRenderController as Ur, DocCanvasPopManagerService as Hr, calcDocRangePositions as Dr, DocEventManagerService as ln, UniverDocsUIPlugin as Ar } from "@univerjs/docs-ui";
9
+ import { IRenderManagerService as De } from "@univerjs/engine-render";
10
+ import { IMessageService as kn, useDependency as S, useObservable as Vr, IZenZoneService as pt, useEvent as $r, KeyCode as Lt, MenuItemType as Tn, MetaKeys as Br, getMenuHiddenObservable as ht, ContextMenuPosition as Fr, ContextMenuGroup as jr, RibbonInsertGroup as Wr, ComponentManager as Zr, IMenuManagerService as Gr, IShortcutService as Kr } from "@univerjs/ui";
11
+ import { Subject as Yr, BehaviorSubject as zr, of as ae, map as Ut, switchMap as Ne, combineLatest as Xr, debounceTime as We, Observable as qr } from "rxjs";
12
+ import { jsxs as Ie, jsx as m, Fragment as Jr } from "react/jsx-runtime";
13
+ import { MessageType as Te, clsx as Ze, FormLayout as me, Input as dn, Select as yt, Button as pn, borderClassName as On, Tooltip as Fe } from "@univerjs/design";
14
+ import { IDefinedNamesService as xn, deserializeRangeWithSheet as Ge, serializeRangeWithSheet as Qr, serializeRangeToRefString as ei, serializeRange as ti } from "@univerjs/engine-formula";
15
+ import { RangeSelector as ni } from "@univerjs/sheets-formula-ui";
16
+ import { SheetHyperLinkType as C, ERROR_RANGE as ri, SheetsHyperLinkParserService as Ht, UpdateRichHyperLinkCommand as ii, UpdateHyperLinkCommand as si, AddRichHyperLinkCommand as oi, AddHyperLinkCommand as ai, CancelRichHyperLinkCommand as ci, CancelHyperLinkCommand as ui, HyperLinkModel as gt, RemoveHyperLinkMutation as Me, AddHyperLinkMutation as Ue, UniverSheetsHyperLinkPlugin as li } from "@univerjs/sheets-hyper-link";
17
17
  import { useState as Z, useMemo as Et, useRef as Nn, useCallback as di, useEffect as ee, forwardRef as le, createElement as de } from "react";
18
18
  import { SheetDataValidationModel as hn } from "@univerjs/sheets-data-validation";
19
+ var v = /* @__PURE__ */ ((t) => (t.EDITING = "editing", t.VIEWING = "viewing", t.ZEN_EDITOR = "zen_mode", t))(v || {});
19
20
  function Ye(t) {
20
21
  return Ce.isLegalUrl(t);
21
22
  }
@@ -94,8 +95,8 @@ let ue = class {
94
95
  }
95
96
  if (e) {
96
97
  if (n) {
97
- const o = Ze(n);
98
- Sn(o.range) && n !== yr && this.navigateToRange(s, e, o.range);
98
+ const o = Ge(n);
99
+ Sn(o.range) && n !== ri && this.navigateToRange(s, e, o.range);
99
100
  return;
100
101
  }
101
102
  this.navigateToSheetById(s, e);
@@ -153,162 +154,11 @@ let ue = class {
153
154
  ue = mi([
154
155
  fe(0, K),
155
156
  fe(1, ne),
156
- fe(2, kn),
157
- fe(3, Tn),
157
+ fe(2, xn),
158
+ fe(3, kn),
158
159
  fe(4, y(ut)),
159
160
  fe(5, Cn)
160
161
  ], ue);
161
- const Dt = "SHEET_HYPER_LINK_UI_PLUGIN";
162
- var _i = Object.getOwnPropertyDescriptor, Ii = (t, e, n, i) => {
163
- for (var r = i > 1 ? void 0 : i ? _i(e, n) : e, s = t.length - 1, o; s >= 0; s--)
164
- (o = t[s]) && (r = o(r) || r);
165
- return r;
166
- }, je = (t, e) => (n, i) => e(n, i, t);
167
- let ze = class extends Y {
168
- constructor(e, n, i, r) {
169
- super();
170
- $(this, "_plainTextFilter", /* @__PURE__ */ new Set());
171
- $(this, "_copyInfo");
172
- this._sheetClipboardService = e, this._hyperLinkModel = n, this._injector = i, this._resolverService = r, this._initCopyPaste(), this.disposeWithMe(() => {
173
- this._plainTextFilter.clear();
174
- });
175
- }
176
- registerPlainTextFilter(e) {
177
- this._plainTextFilter.add(e);
178
- }
179
- removePlainTextFilter(e) {
180
- this._plainTextFilter.delete(e);
181
- }
182
- /* If return false the process of paste text will be stop */
183
- _filterPlainText(e) {
184
- return Array.from(this._plainTextFilter).every((n) => n(e));
185
- }
186
- _initCopyPaste() {
187
- this._sheetClipboardService.addClipboardHook({
188
- id: Dt,
189
- onBeforeCopy: (e, n, i) => this._collect(e, n, i),
190
- onPasteCells: (e, n, i, r) => {
191
- const { copyType: s = Or.COPY, pasteType: o } = r, { range: c } = e || {}, { range: u, unitId: p, subUnitId: l } = n;
192
- return this._generateMutations(u, { copyType: s, pasteType: o, copyRange: c, unitId: p, subUnitId: l });
193
- },
194
- onPastePlainText: (e, n) => {
195
- const i = this._filterPlainText(n);
196
- if (Ye(n) && i) {
197
- const { range: r, unitId: s, subUnitId: o } = e, { ranges: [c], mapFunc: u } = Pt([r]), p = [], l = [];
198
- return yn.foreach(c, (g, d) => {
199
- const { row: _, col: I } = u(g, d), f = this._hyperLinkModel.getHyperLinkByLocation(s, o, _, I);
200
- f && p.push({
201
- id: Ne.id,
202
- params: {
203
- unitId: s,
204
- subUnitId: o,
205
- id: f.id
206
- }
207
- }), f && l.push({
208
- id: Me.id,
209
- params: {
210
- unitId: s,
211
- subUnitId: o,
212
- link: f
213
- }
214
- });
215
- }), { redos: p, undos: l };
216
- }
217
- return { undos: [], redos: [] };
218
- },
219
- priority: 99
220
- });
221
- }
222
- _collect(e, n, i) {
223
- const r = new Qn();
224
- this._copyInfo = {
225
- unitId: e,
226
- subUnitId: n,
227
- matrix: r
228
- };
229
- const s = this._injector.invoke((u) => dr(i, u, e, n));
230
- if (!s)
231
- return;
232
- const { rows: o, cols: c } = s;
233
- o.forEach((u, p) => {
234
- c.forEach((l, g) => {
235
- var _;
236
- const d = this._hyperLinkModel.getHyperLinkByLocation(e, n, u, l);
237
- r.setValue(p, g, (_ = d == null ? void 0 : d.id) != null ? _ : "");
238
- });
239
- });
240
- }
241
- // eslint-disable-next-line max-lines-per-function
242
- _generateMutations(e, n) {
243
- if (!this._copyInfo)
244
- return { redos: [], undos: [] };
245
- if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !n.copyRange)
246
- return { redos: [], undos: [] };
247
- if ([
248
- Be.SPECIAL_PASTE_COL_WIDTH,
249
- Be.SPECIAL_PASTE_VALUE,
250
- Be.SPECIAL_PASTE_FORMAT,
251
- Be.SPECIAL_PASTE_FORMULA
252
- ].includes(n.pasteType))
253
- return { redos: [], undos: [] };
254
- const { unitId: r, subUnitId: s } = this._copyInfo, o = [], c = [], { ranges: [u, p], mapFunc: l } = Pt([n.copyRange, e]);
255
- return xr(u, p, !0).forEach(({ startRange: d }) => {
256
- var _;
257
- (_ = this._copyInfo) == null || _.matrix.forValue((I, f, w) => {
258
- const a = ye.getPositionRange(
259
- {
260
- startRow: I,
261
- endRow: I,
262
- startColumn: f,
263
- endColumn: f
264
- },
265
- d
266
- ), b = this._hyperLinkModel.getHyperLink(r, s, w), { row: M, col: T } = l(a.startRow, a.startColumn), P = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, M, T), D = Ce.generateRandomId();
267
- P && o.push({
268
- id: Ne.id,
269
- params: {
270
- unitId: n.unitId,
271
- subUnitId: n.subUnitId,
272
- id: P.id
273
- }
274
- }), b && (o.push({
275
- id: Me.id,
276
- params: {
277
- unitId: n.unitId,
278
- subUnitId: n.subUnitId,
279
- link: {
280
- ...b,
281
- id: D,
282
- row: M,
283
- column: T
284
- }
285
- }
286
- }), c.push({
287
- id: Ne.id,
288
- params: {
289
- unitId: n.unitId,
290
- subUnitId: n.subUnitId,
291
- id: D
292
- }
293
- })), P && c.push({
294
- id: Me.id,
295
- params: {
296
- unitId: n.unitId,
297
- subUnitId: n.subUnitId,
298
- link: P
299
- }
300
- });
301
- });
302
- }), { redos: o, undos: c };
303
- }
304
- };
305
- ze = Ii([
306
- je(0, Tr),
307
- je(1, y(pt)),
308
- je(2, y(lt)),
309
- je(3, y(ue))
310
- ], ze);
311
- var v = /* @__PURE__ */ ((t) => (t.EDITING = "editing", t.VIEWING = "viewing", t.ZEN_EDITOR = "zen_mode", t))(v || {});
312
162
  class Un extends Y {
313
163
  constructor() {
314
164
  super(...arguments);
@@ -337,9 +187,9 @@ class Un extends Y {
337
187
  super.dispose(), this._customHyperLinks.clear();
338
188
  }
339
189
  }
340
- const Xe = () => {
190
+ const ze = () => {
341
191
  var Zt;
342
- const [t, e] = Z(""), [n, i] = Z(!1), [r, s] = Z(""), [o, c] = Z(!0), [u, p] = Z(C.URL), [l, g] = Z(""), d = S(ut), _ = S(kn), I = S(te), f = S(K), w = S(G), a = Gr(w.currentEditing$), b = S(Ut), M = S(ue), T = S(ne), P = S(Un), D = Et(() => P.getOptions(), [P]), A = S(ht), z = S(De), re = S(Nr), Ae = S(He), ie = S(er), Ee = S(tr), Re = S(He), [Pe, Ve] = Z(!1), he = S(kt), Zn = Et(() => he.getCurrentSelections(), []), $e = Et(() => {
192
+ const [t, e] = Z(""), [n, i] = Z(!1), [r, s] = Z(""), [o, c] = Z(!0), [u, p] = Z(C.URL), [l, g] = Z(""), d = S(ut), _ = S(xn), I = S(te), f = S(K), w = S(G), a = Vr(w.currentEditing$), b = S(Ht), M = S(ue), T = S(ne), P = S(Un), D = Et(() => P.getOptions(), [P]), A = S(pt), z = S(De), re = S(yr), Ae = S(He), ie = S(Qn), Ee = S(er), Re = S(He), [Pe, Ve] = Z(!1), he = S(kt), Zn = Et(() => he.getCurrentSelections(), []), $e = Et(() => {
343
193
  if (!P.isBuiltInLinkType(u))
344
194
  return P.getCustomHyperLink(u);
345
195
  }, [P, u]), [ge, Gn] = Z(!1), [Le, jt] = Z(!1), H = Nn(!1), B = f.getCurrentUnitForType(k.UNIVER_SHEET), Kn = (B == null ? void 0 : B.getActiveSheet().getSheetId()) || "", q = di((h) => {
@@ -397,7 +247,7 @@ const Xe = () => {
397
247
  break;
398
248
  }
399
249
  case C.RANGE: {
400
- const O = J.searchObj, Q = O.gid && (nn = (tn = (en = f.getUnit(a.unitId)) == null ? void 0 : en.getSheetBySheetId(O.gid)) == null ? void 0 : tn.getName()) != null ? nn : "", U = jr(Q, Ze(O.range).range);
250
+ const O = J.searchObj, Q = O.gid && (nn = (tn = (en = f.getUnit(a.unitId)) == null ? void 0 : en.getSheetBySheetId(O.gid)) == null ? void 0 : tn.getName()) != null ? nn : "", U = Qr(Q, Ge(O.range).range);
401
251
  g(U), U === j.display && (H.current = !0);
402
252
  break;
403
253
  }
@@ -419,7 +269,7 @@ const Xe = () => {
419
269
  }, [a, M, P, Ae, f]), ee(() => {
420
270
  let h = null;
421
271
  if (a && !a.customRangeId && a.type === v.VIEWING && Ce.isDefine(a.row) && Ce.isDefine(a.col)) {
422
- const E = f.getUnit(a.unitId, k.UNIVER_SHEET), R = E == null ? void 0 : E.getSheetBySheetId(a.subUnitId), L = R == null ? void 0 : R.getMergedCell(a.row, a.col), N = new nr(Ee.getColorFromTheme("primary.600")).toRgb();
272
+ const E = f.getUnit(a.unitId, k.UNIVER_SHEET), R = E == null ? void 0 : E.getSheetBySheetId(a.subUnitId), L = R == null ? void 0 : R.getMergedCell(a.row, a.col), N = new tr(Ee.getColorFromTheme("primary.600")).toRgb();
423
273
  h = re.addShape(
424
274
  {
425
275
  range: L != null ? L : {
@@ -447,9 +297,9 @@ const Xe = () => {
447
297
  }, [a, re, Ee, f]), ee(() => {
448
298
  jt(u === C.RANGE);
449
299
  }, [u]), ee(() => {
450
- const h = (a == null ? void 0 : a.type) === v.ZEN_EDITOR ? z.getRenderById(x) : z.getRenderById(I.getCurrentEditorId()), E = new rr();
300
+ const h = (a == null ? void 0 : a.type) === v.ZEN_EDITOR ? z.getRenderById(x) : z.getRenderById(I.getCurrentEditorId()), E = new nr();
451
301
  if (h) {
452
- const R = h.with(xn);
302
+ const R = h.with(bn);
453
303
  R.setReserveRangesStatus(!0), E.add(() => {
454
304
  R.setReserveRangesStatus(!1);
455
305
  });
@@ -495,18 +345,18 @@ const Xe = () => {
495
345
  if (h === C.URL)
496
346
  return gi(E);
497
347
  if (h === C.RANGE) {
498
- const R = Ze(E), L = B.getSheetBySheetName(R.sheetName);
348
+ const R = Ge(E), L = B.getSheetBySheetName(R.sheetName);
499
349
  if (L)
500
- return `#gid=${L.getSheetId()}&range=${Zr(R.range)}`;
350
+ return `#gid=${L.getSheetId()}&range=${ti(R.range)}`;
501
351
  }
502
352
  return `#${h}=${E}`;
503
- }, Xn = Kr((h) => {
353
+ }, Xn = $r((h) => {
504
354
  var N;
505
- const R = h.split(",").map(Ze)[0];
355
+ const R = h.split(",").map(Ge)[0];
506
356
  if (!R || !Sn(R.range))
507
357
  return;
508
358
  R.sheetName || (R.sheetName = ((N = B.getActiveSheet()) == null ? void 0 : N.getName()) || "");
509
- const L = Wr(R);
359
+ const L = ei(R);
510
360
  g(L), L && (H.current || !r) && (q(L), H.current = !0);
511
361
  }), ft = async () => {
512
362
  if (o && !r || !l || u === C.URL && !Ye(l)) {
@@ -515,7 +365,7 @@ const Xe = () => {
515
365
  }
516
366
  if (a)
517
367
  if (t) {
518
- const h = a.type === v.ZEN_EDITOR || a.type === v.EDITING ? Er.id : Rr.id;
368
+ const h = a.type === v.ZEN_EDITOR || a.type === v.EDITING ? ii.id : si.id;
519
369
  await T.executeCommand(h, {
520
370
  id: t,
521
371
  unitId: a.unitId,
@@ -529,12 +379,12 @@ const Xe = () => {
529
379
  documentId: a.type === v.ZEN_EDITOR ? x : I.getCurrentEditorId()
530
380
  });
531
381
  } else {
532
- const h = a.type === v.ZEN_EDITOR || a.type === v.EDITING ? Pr.id : Lr.id;
382
+ const h = a.type === v.ZEN_EDITOR || a.type === v.EDITING ? oi.id : ai.id;
533
383
  await T.executeCommand(h, {
534
384
  unitId: a.unitId,
535
385
  subUnitId: a.subUnitId,
536
386
  link: {
537
- id: ir(),
387
+ id: rr(),
538
388
  row: a.row,
539
389
  column: a.col,
540
390
  payload: Wt(u, l),
@@ -558,12 +408,12 @@ const Xe = () => {
558
408
  }
559
409
  });
560
410
  }
561
- T.executeCommand(Je.id);
411
+ T.executeCommand(qe.id);
562
412
  };
563
413
  return a ? /* @__PURE__ */ Ie(
564
414
  "div",
565
415
  {
566
- className: We("univer-box-border univer-w-[296px] univer-rounded-xl univer-bg-white univer-p-4 univer-shadow-md dark:!univer-bg-gray-900", bn),
416
+ className: Ze("univer-box-border univer-w-[296px] univer-rounded-xl univer-bg-white univer-p-4 univer-shadow-md dark:!univer-bg-gray-900", On),
567
417
  children: [
568
418
  o ? /* @__PURE__ */ m(
569
419
  me,
@@ -571,7 +421,7 @@ const Xe = () => {
571
421
  label: d.t("hyperLink.form.label"),
572
422
  error: ge && !r ? d.t("hyperLink.form.inputError") : "",
573
423
  children: /* @__PURE__ */ m(
574
- ln,
424
+ dn,
575
425
  {
576
426
  value: r,
577
427
  onChange: (h) => {
@@ -602,7 +452,7 @@ const Xe = () => {
602
452
  {
603
453
  error: ge ? l ? Ye(l) ? "" : d.t("hyperLink.form.linkError") : d.t("hyperLink.form.inputError") : "",
604
454
  children: /* @__PURE__ */ m(
605
- ln,
455
+ dn,
606
456
  {
607
457
  value: l,
608
458
  onChange: (h) => {
@@ -618,7 +468,7 @@ const Xe = () => {
618
468
  }
619
469
  ),
620
470
  u === C.RANGE && /* @__PURE__ */ m(me, { error: ge && !l ? d.t("hyperLink.form.inputError") : "", children: /* @__PURE__ */ m(
621
- li,
471
+ ni,
622
472
  {
623
473
  unitId: B.getUnitId(),
624
474
  subUnitId: Kn,
@@ -638,7 +488,7 @@ const Xe = () => {
638
488
  subUnitId: a.subUnitId,
639
489
  selections: [{ range: { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col } }]
640
490
  }), A.show(), ie.setContextValue(Ct, !1);
641
- const L = (E = z.getRenderById(x)) == null ? void 0 : E.with(ti), N = (R = Re.getTextRanges({ unitId: x, subUnitId: x })) == null ? void 0 : R[0];
491
+ const L = (E = z.getRenderById(x)) == null ? void 0 : E.with(Ur), N = (R = Re.getTextRanges({ unitId: x, subUnitId: x })) == null ? void 0 : R[0];
642
492
  L && N && (L.scrollToRange(N), Re.refreshSelection({ unitId: x, subUnitId: x }));
643
493
  }
644
494
  I.disableForceKeepVisible(), i(!1);
@@ -691,16 +541,16 @@ const Xe = () => {
691
541
  ),
692
542
  /* @__PURE__ */ Ie("div", { className: "univer-flex univer-flex-row univer-justify-end univer-gap-2", children: [
693
543
  /* @__PURE__ */ m(
694
- dn,
544
+ pn,
695
545
  {
696
546
  onClick: () => {
697
- a && M.navigateToRange(a.unitId, a.subUnitId, { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col }, !0), T.executeCommand(Je.id);
547
+ a && M.navigateToRange(a.unitId, a.subUnitId, { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col }, !0), T.executeCommand(qe.id);
698
548
  },
699
549
  children: d.t("hyperLink.form.cancel")
700
550
  }
701
551
  ),
702
552
  /* @__PURE__ */ m(
703
- dn,
553
+ pn,
704
554
  {
705
555
  variant: "primary",
706
556
  onClick: async () => {
@@ -714,7 +564,7 @@ const Xe = () => {
714
564
  }
715
565
  ) : null;
716
566
  };
717
- Xe.componentKey = "univer.sheet.cell-link-edit";
567
+ ze.componentKey = "univer.sheet.cell-link-edit";
718
568
  var V = function() {
719
569
  return V = Object.assign || function(t) {
720
570
  for (var e, n = 1, i = arguments.length; n < i; n++) {
@@ -723,7 +573,7 @@ var V = function() {
723
573
  }
724
574
  return t;
725
575
  }, V.apply(this, arguments);
726
- }, Ci = function(t, e) {
576
+ }, _i = function(t, e) {
727
577
  var n = {};
728
578
  for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
729
579
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -731,15 +581,15 @@ var V = function() {
731
581
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[r]) && (n[i[r]] = t[i[r]]);
732
582
  return n;
733
583
  }, pe = le(function(t, e) {
734
- var n = t.icon, i = t.id, r = t.className, s = t.extend, o = Ci(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), u = Nn("_".concat(Ei()));
584
+ var n = t.icon, i = t.id, r = t.className, s = t.extend, o = _i(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), u = Nn("_".concat(Si()));
735
585
  return Hn(n, "".concat(i), { defIds: n.defIds, idSuffix: u.current }, V({ ref: e, className: c }, o), s);
736
586
  });
737
587
  function Hn(t, e, n, i, r) {
738
- return de(t.tag, V(V({ key: e }, Si(t, n, r)), i), (yi(t, n).children || []).map(function(s, o) {
588
+ return de(t.tag, V(V({ key: e }, Ii(t, n, r)), i), (Ci(t, n).children || []).map(function(s, o) {
739
589
  return Hn(s, "".concat(e, "-").concat(t.tag, "-").concat(o), n, void 0, r);
740
590
  }));
741
591
  }
742
- function Si(t, e, n) {
592
+ function Ii(t, e, n) {
743
593
  var i = V({}, t.attrs);
744
594
  n != null && n.colorChannel1 && i.fill === "colorChannel1" && (i.fill = n.colorChannel1), t.tag === "mask" && i.id && (i.id = i.id + e.idSuffix), Object.entries(i).forEach(function(s) {
745
595
  var o = s[0], c = s[1];
@@ -751,86 +601,86 @@ function Si(t, e, n) {
751
601
  typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
752
602
  })), i;
753
603
  }
754
- function yi(t, e) {
604
+ function Ci(t, e) {
755
605
  var n, i = e.defIds;
756
606
  return !i || i.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? V(V({}, t), { children: t.children.map(function(r) {
757
607
  return typeof r.attrs.id == "string" && i && i.includes(r.attrs.id) ? V(V({}, r), { attrs: V(V({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
758
608
  }) }) : t;
759
609
  }
760
- function Ei() {
610
+ function Si() {
761
611
  return Math.random().toString(36).substring(2, 8);
762
612
  }
763
613
  pe.displayName = "UniverIcon";
764
- var Ri = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ke = le(function(t, e) {
614
+ var yi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ke = le(function(t, e) {
765
615
  return de(pe, Object.assign({}, t, {
766
616
  id: "all-border-icon",
767
617
  ref: e,
768
- icon: Ri
618
+ icon: yi
769
619
  }));
770
620
  });
771
621
  Ke.displayName = "AllBorderIcon";
772
- var Pi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.1302 12.4251C4.25802 13.7417 5.36779 14.7708 6.71792 14.7708H11.7179C13.1539 14.7708 14.3179 13.6067 14.3179 12.1708V6.1708C14.3179 4.78586 13.2351 3.65383 11.8698 3.57517C11.742 2.25858 10.6323 1.22949 9.28213 1.22949H4.28213C2.84619 1.22949 1.68213 2.39355 1.68213 3.82949V9.82949C1.68213 11.2144 2.76497 12.3465 4.1302 12.4251ZM10.6583 3.5708H6.71792C5.28198 3.5708 4.11792 4.73486 4.11792 6.1708V11.22C3.4221 11.1387 2.88213 10.5471 2.88213 9.82949V3.82949C2.88213 3.05629 3.50893 2.42949 4.28213 2.42949H9.28213C9.96695 2.42949 10.5369 2.92119 10.6583 3.5708ZM13.1179 6.1708C13.1179 5.3976 12.4911 4.7708 11.7179 4.7708H6.71792C5.94472 4.7708 5.31792 5.3976 5.31792 6.1708V12.1708C5.31792 12.944 5.94472 13.5708 6.71792 13.5708H11.7179C12.4911 13.5708 13.1179 12.944 13.1179 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Dn = le(function(t, e) {
622
+ var Ei = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.1302 12.4251C4.25802 13.7417 5.36779 14.7708 6.71792 14.7708H11.7179C13.1539 14.7708 14.3179 13.6067 14.3179 12.1708V6.1708C14.3179 4.78586 13.2351 3.65383 11.8698 3.57517C11.742 2.25858 10.6323 1.22949 9.28213 1.22949H4.28213C2.84619 1.22949 1.68213 2.39355 1.68213 3.82949V9.82949C1.68213 11.2144 2.76497 12.3465 4.1302 12.4251ZM10.6583 3.5708H6.71792C5.28198 3.5708 4.11792 4.73486 4.11792 6.1708V11.22C3.4221 11.1387 2.88213 10.5471 2.88213 9.82949V3.82949C2.88213 3.05629 3.50893 2.42949 4.28213 2.42949H9.28213C9.96695 2.42949 10.5369 2.92119 10.6583 3.5708ZM13.1179 6.1708C13.1179 5.3976 12.4911 4.7708 11.7179 4.7708H6.71792C5.94472 4.7708 5.31792 5.3976 5.31792 6.1708V12.1708C5.31792 12.944 5.94472 13.5708 6.71792 13.5708H11.7179C12.4911 13.5708 13.1179 12.944 13.1179 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Dn = le(function(t, e) {
773
623
  return de(pe, Object.assign({}, t, {
774
624
  id: "copy-icon",
775
625
  ref: e,
776
- icon: Pi
626
+ icon: Ei
777
627
  }));
778
628
  });
779
629
  Dn.displayName = "CopyIcon";
780
- var Li = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.8816 1.97978C11.0177 0.843607 12.862 0.884962 14.0004 2.02342C15.1389 3.16188 15.1803 5.00612 14.0441 6.14228L11.399 8.78737C11.1608 9.02559 10.7746 9.02559 10.5363 8.78737C10.2981 8.54915 10.2981 8.16292 10.5363 7.9247L13.1814 5.2796C13.8195 4.64155 13.8217 3.57006 13.1378 2.8861C12.4538 2.20211 11.3823 2.20438 10.7443 2.84245L7.6976 5.88911L7.69317 5.89349C7.05959 6.53211 7.05894 7.60014 7.74132 8.28252C7.97954 8.52074 7.97954 8.90697 7.74132 9.14519C7.5031 9.38341 7.11687 9.38341 6.87865 9.14519C5.74016 8.00671 5.69884 6.16251 6.83497 5.02633L6.84021 5.02116L9.8816 1.97978Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.61426 7.2364C4.85248 6.99818 5.23871 6.99818 5.47693 7.2364C5.71515 7.47462 5.71515 7.86085 5.47693 8.09907L2.83183 10.7442C2.19375 11.3823 2.1915 12.4537 2.87547 13.1377C3.55945 13.8217 4.6309 13.8194 5.26899 13.1813L8.31566 10.1347C8.32262 10.1277 8.32971 10.121 8.33691 10.1144C8.34408 10.1064 8.3515 10.0986 8.35916 10.091C8.99721 9.45291 8.99949 8.38145 8.3155 7.69746C8.07728 7.45924 8.07728 7.07301 8.3155 6.83479C8.55372 6.59657 8.93995 6.59657 9.17817 6.83479C10.3166 7.97327 10.358 9.81748 9.22183 10.9536C9.21487 10.9606 9.20779 10.9673 9.20058 10.9739C9.19341 10.9819 9.18599 10.9897 9.17833 10.9973L6.13166 14.044C4.99548 15.1802 3.15127 15.1389 2.01279 14.0004C0.874362 12.8619 0.83297 11.0177 1.96916 9.8815L4.61426 7.2364Z" } }] }, At = le(function(t, e) {
630
+ var Ri = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.8816 1.97978C11.0177 0.843607 12.862 0.884962 14.0004 2.02342C15.1389 3.16188 15.1803 5.00612 14.0441 6.14228L11.399 8.78737C11.1608 9.02559 10.7746 9.02559 10.5363 8.78737C10.2981 8.54915 10.2981 8.16292 10.5363 7.9247L13.1814 5.2796C13.8195 4.64155 13.8217 3.57006 13.1378 2.8861C12.4538 2.20211 11.3823 2.20438 10.7443 2.84245L7.6976 5.88911L7.69317 5.89349C7.05959 6.53211 7.05894 7.60014 7.74132 8.28252C7.97954 8.52074 7.97954 8.90697 7.74132 9.14519C7.5031 9.38341 7.11687 9.38341 6.87865 9.14519C5.74016 8.00671 5.69884 6.16251 6.83497 5.02633L6.84021 5.02116L9.8816 1.97978Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.61426 7.2364C4.85248 6.99818 5.23871 6.99818 5.47693 7.2364C5.71515 7.47462 5.71515 7.86085 5.47693 8.09907L2.83183 10.7442C2.19375 11.3823 2.1915 12.4537 2.87547 13.1377C3.55945 13.8217 4.6309 13.8194 5.26899 13.1813L8.31566 10.1347C8.32262 10.1277 8.32971 10.121 8.33691 10.1144C8.34408 10.1064 8.3515 10.0986 8.35916 10.091C8.99721 9.45291 8.99949 8.38145 8.3155 7.69746C8.07728 7.45924 8.07728 7.07301 8.3155 6.83479C8.55372 6.59657 8.93995 6.59657 9.17817 6.83479C10.3166 7.97327 10.358 9.81748 9.22183 10.9536C9.21487 10.9606 9.20779 10.9673 9.20058 10.9739C9.19341 10.9819 9.18599 10.9897 9.17833 10.9973L6.13166 14.044C4.99548 15.1802 3.15127 15.1389 2.01279 14.0004C0.874362 12.8619 0.83297 11.0177 1.96916 9.8815L4.61426 7.2364Z" } }] }, Dt = le(function(t, e) {
781
631
  return de(pe, Object.assign({}, t, {
782
632
  id: "link-icon",
783
633
  ref: e,
784
- icon: Li
634
+ icon: Ri
785
635
  }));
786
636
  });
787
- At.displayName = "LinkIcon";
788
- var wi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157C6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449C14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797C11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395C4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092C3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721C8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332C2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302C13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332Z" } }] }, An = le(function(t, e) {
637
+ Dt.displayName = "LinkIcon";
638
+ var Pi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157C6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449C14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797C11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395C4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092C3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721C8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332C2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302C13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332Z" } }] }, An = le(function(t, e) {
789
639
  return de(pe, Object.assign({}, t, {
790
640
  id: "unlink-icon",
791
641
  ref: e,
792
- icon: wi
642
+ icon: Pi
793
643
  }));
794
644
  });
795
645
  An.displayName = "UnlinkIcon";
796
- var bi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, Vn = le(function(t, e) {
646
+ var Li = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, Vn = le(function(t, e) {
797
647
  return de(pe, Object.assign({}, t, {
798
648
  id: "write-icon",
799
649
  ref: e,
800
- icon: bi
650
+ icon: Li
801
651
  }));
802
652
  });
803
653
  Vn.displayName = "WriteIcon";
804
- var ki = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "#35BD4B", d: "M3.4535 1.12549C2.7002 1.12549 2.08954 1.73615 2.08954 2.48945V13.5104C2.08954 14.2637 2.7002 14.8744 3.4535 14.8744H12.5465C13.2998 14.8744 13.9105 14.2637 13.9105 13.5104V5.0992L10.0091 1.12549H3.4535Z" } }, { tag: "path", attrs: { fill: "#32A846", d: "M10.0075 1.12549L13.9104 5.09842H10.6742C10.306 5.09842 10.0075 4.79994 10.0075 4.43175V1.12549Z" } }, { tag: "path", attrs: { fill: "white", d: "M7.8088 10.2949L6.3764 12.403C6.26259 12.5705 6.03455 12.614 5.86705 12.5002C5.69955 12.3864 5.65603 12.1584 5.76984 11.9909L7.3655 9.64252L5.94042 7.54519C5.82661 7.37769 5.87013 7.14964 6.03763 7.03583C6.20512 6.92202 6.43317 6.96555 6.54698 7.13304L7.8088 8.9901L9.07062 7.13304C9.18443 6.96555 9.41248 6.92202 9.57997 7.03583C9.74747 7.14964 9.79099 7.37769 9.67718 7.54519L8.2521 9.64252L9.84776 11.9909C9.96157 12.1584 9.91805 12.3864 9.75055 12.5002C9.58305 12.614 9.35501 12.5705 9.2412 12.403L7.8088 10.2949Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, $n = le(function(t, e) {
654
+ var wi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "#35BD4B", d: "M3.4535 1.12549C2.7002 1.12549 2.08954 1.73615 2.08954 2.48945V13.5104C2.08954 14.2637 2.7002 14.8744 3.4535 14.8744H12.5465C13.2998 14.8744 13.9105 14.2637 13.9105 13.5104V5.0992L10.0091 1.12549H3.4535Z" } }, { tag: "path", attrs: { fill: "#32A846", d: "M10.0075 1.12549L13.9104 5.09842H10.6742C10.306 5.09842 10.0075 4.79994 10.0075 4.43175V1.12549Z" } }, { tag: "path", attrs: { fill: "white", d: "M7.8088 10.2949L6.3764 12.403C6.26259 12.5705 6.03455 12.614 5.86705 12.5002C5.69955 12.3864 5.65603 12.1584 5.76984 11.9909L7.3655 9.64252L5.94042 7.54519C5.82661 7.37769 5.87013 7.14964 6.03763 7.03583C6.20512 6.92202 6.43317 6.96555 6.54698 7.13304L7.8088 8.9901L9.07062 7.13304C9.18443 6.96555 9.41248 6.92202 9.57997 7.03583C9.74747 7.14964 9.79099 7.37769 9.67718 7.54519L8.2521 9.64252L9.84776 11.9909C9.96157 12.1584 9.91805 12.3864 9.75055 12.5002C9.58305 12.614 9.35501 12.5705 9.2412 12.403L7.8088 10.2949Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, $n = le(function(t, e) {
805
655
  return de(pe, Object.assign({}, t, {
806
656
  id: "xlsx-multi-icon",
807
657
  ref: e,
808
- icon: ki
658
+ icon: wi
809
659
  }));
810
660
  });
811
661
  $n.displayName = "XlsxMultiIcon";
812
- const Ti = {
813
- [C.URL]: /* @__PURE__ */ m(At, {}),
662
+ const bi = {
663
+ [C.URL]: /* @__PURE__ */ m(Dt, {}),
814
664
  [C.SHEET]: /* @__PURE__ */ m($n, { className: "univer-text-green-500" }),
815
665
  [C.RANGE]: /* @__PURE__ */ m(Ke, {}),
816
666
  [C.DEFINE_NAME]: /* @__PURE__ */ m(Ke, {}),
817
667
  [C.INVALID]: /* @__PURE__ */ m(Ke, {})
818
668
  }, vn = (t) => {
819
669
  var M, T;
820
- const e = S(G), n = S(ne), i = S(Tn), r = S(ut), s = S(ue), o = S(te), c = S(Ut), u = S(ht), { customRange: p, row: l, col: g, unitId: d, subUnitId: _, editPermission: I, copyPermission: f, type: w } = t;
670
+ const e = S(G), n = S(ne), i = S(kn), r = S(ut), s = S(ue), o = S(te), c = S(Ht), u = S(pt), { customRange: p, row: l, col: g, unitId: d, subUnitId: _, editPermission: I, copyPermission: f, type: w } = t;
821
671
  if (!((M = p == null ? void 0 : p.properties) != null && M.url))
822
672
  return null;
823
673
  const a = c.parseHyperLink((T = p.properties.url) != null ? T : ""), b = a.type === C.INVALID;
824
674
  return /* @__PURE__ */ Ie(
825
675
  "div",
826
676
  {
827
- className: We("univer-mb-1 univer-flex univer-max-w-80 univer-flex-row univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-lg univer-bg-white univer-p-3 univer-shadow-md dark:!univer-bg-gray-900", bn),
677
+ className: Ze("univer-mb-1 univer-flex univer-max-w-80 univer-flex-row univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-lg univer-bg-white univer-p-3 univer-shadow-md dark:!univer-bg-gray-900", On),
828
678
  onClick: () => e.hideCurrentPopup(),
829
679
  children: [
830
680
  /* @__PURE__ */ Ie(
831
681
  "div",
832
682
  {
833
- className: We("univer-flex univer-h-6 univer-flex-1 univer-cursor-pointer univer-flex-row univer-items-center univer-truncate univer-text-sm univer-leading-5 univer-text-primary-600", { "univer-text-red-500": b }),
683
+ className: Ze("univer-flex univer-h-6 univer-flex-1 univer-cursor-pointer univer-flex-row univer-items-center univer-truncate univer-text-sm univer-leading-5 univer-text-primary-600", { "univer-text-red-500": b }),
834
684
  onClick: () => {
835
685
  u.visible || b || s.navigate(a);
836
686
  },
@@ -839,7 +689,7 @@ const Ti = {
839
689
  "div",
840
690
  {
841
691
  className: "univer-mr-2 univer-flex univer-h-5 univer-w-5 univer-flex-none univer-items-center univer-justify-center univer-text-base univer-text-gray-900 dark:!univer-text-white",
842
- children: Ti[a.type]
692
+ children: bi[a.type]
843
693
  }
844
694
  ),
845
695
  /* @__PURE__ */ m(Fe, { showIfEllipsis: !0, title: a.name, asChild: !0, children: /* @__PURE__ */ m("span", { className: "univer-flex-1 univer-overflow-hidden univer-text-ellipsis", children: a.name }) })
@@ -854,7 +704,7 @@ const Ti = {
854
704
  f && /* @__PURE__ */ m(
855
705
  "div",
856
706
  {
857
- className: We("univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", { "univer-text-red-500": b }),
707
+ className: Ze("univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", { "univer-text-red-500": b }),
858
708
  onClick: () => {
859
709
  if (!b) {
860
710
  if (a.type !== C.URL) {
@@ -871,13 +721,13 @@ const Ti = {
871
721
  children: /* @__PURE__ */ m(Fe, { placement: "bottom", title: r.t("hyperLink.popup.copy"), children: /* @__PURE__ */ m(Dn, { className: "dark:!univer-text-white" }) })
872
722
  }
873
723
  ),
874
- I && /* @__PURE__ */ Ie(ui, { children: [
724
+ I && /* @__PURE__ */ Ie(Jr, { children: [
875
725
  /* @__PURE__ */ m(
876
726
  "div",
877
727
  {
878
728
  className: "univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
879
729
  onClick: () => {
880
- n.executeCommand($t.id, {
730
+ n.executeCommand(Vt.id, {
881
731
  unitId: d,
882
732
  subUnitId: _,
883
733
  row: l,
@@ -894,7 +744,7 @@ const Ti = {
894
744
  {
895
745
  className: "univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
896
746
  onClick: () => {
897
- const P = w === v.EDITING || w === v.ZEN_EDITOR ? wr.id : br.id;
747
+ const P = w === v.EDITING || w === v.ZEN_EDITOR ? ci.id : ui.id;
898
748
  n.syncExecuteCommand(P, {
899
749
  unitId: d,
900
750
  subUnitId: _,
@@ -914,7 +764,7 @@ const Ti = {
914
764
  ]
915
765
  }
916
766
  );
917
- }, qe = () => {
767
+ }, Xe = () => {
918
768
  var r, s;
919
769
  const t = S(G), [e, n] = Z(null), i = S(K);
920
770
  if (ee(() => {
@@ -933,9 +783,9 @@ const Ti = {
933
783
  }
934
784
  return /* @__PURE__ */ m(vn, { ...e });
935
785
  };
936
- qe.componentKey = "univer.sheet.cell-link-popup";
937
- var Oi = Object.getOwnPropertyDescriptor, xi = (t, e, n, i) => {
938
- for (var r = i > 1 ? void 0 : i ? Oi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
786
+ Xe.componentKey = "univer.sheet.cell-link-popup";
787
+ var ki = Object.getOwnPropertyDescriptor, Ti = (t, e, n, i) => {
788
+ for (var r = i > 1 ? void 0 : i ? ki(e, n) : e, s = t.length - 1, o; s >= 0; s--)
939
789
  (o = t[s]) && (r = o(r) || r);
940
790
  return r;
941
791
  }, oe = (t, e) => (n, i) => e(n, i, t);
@@ -947,10 +797,10 @@ let G = class extends Y {
947
797
  constructor(e, n, i, r, s, o, c) {
948
798
  super();
949
799
  $(this, "_currentPopup", null);
950
- $(this, "_currentPopup$", new si());
800
+ $(this, "_currentPopup$", new Yr());
951
801
  $(this, "currentPopup$", this._currentPopup$.asObservable());
952
802
  $(this, "_currentEditingPopup", null);
953
- $(this, "_currentEditing$", new oi(null));
803
+ $(this, "_currentEditing$", new zr(null));
954
804
  $(this, "currentEditing$", this._currentEditing$.asObservable());
955
805
  $(this, "_isKeepVisible", !1);
956
806
  this._sheetCanvasPopManagerService = e, this._injector = n, this._univerInstanceService = i, this._editorBridgeService = r, this._textSelectionManagerService = s, this._docCanvasPopManagerService = o, this._zenZoneService = c, this.disposeWithMe(() => {
@@ -978,7 +828,7 @@ let G = class extends Y {
978
828
  const { unitId: i, subUnitId: r, row: s, col: o, customRangeRect: c, customRange: u } = e;
979
829
  let p;
980
830
  const l = {
981
- componentKey: qe.componentKey,
831
+ componentKey: Xe.componentKey,
982
832
  direction: "bottom",
983
833
  onClickOutside: () => {
984
834
  this.hideCurrentPopup();
@@ -1063,7 +913,7 @@ let G = class extends Y {
1063
913
  }
1064
914
  get _editPopup() {
1065
915
  return {
1066
- componentKey: Xe.componentKey,
916
+ componentKey: ze.componentKey,
1067
917
  direction: "vertical",
1068
918
  onClickOutside: () => {
1069
919
  this.endEditing();
@@ -1102,7 +952,7 @@ let G = class extends Y {
1102
952
  const g = this._injector.get(De).getRenderById(Se);
1103
953
  if (!g)
1104
954
  return;
1105
- const d = ri(l, g);
955
+ const d = Dr(l, g);
1106
956
  if (!(d != null && d.length))
1107
957
  return;
1108
958
  this._currentEditingPopup = this._sheetCanvasPopManagerService.attachPopupToAbsolutePosition(
@@ -1154,7 +1004,7 @@ let G = class extends Y {
1154
1004
  x
1155
1005
  );
1156
1006
  } else if (e.type === v.EDITING) {
1157
- const d = Ur(this._injector, e.unitId, e.subUnitId, e.row, e.col, e.customRangeId);
1007
+ const d = Rr(this._injector, e.unitId, e.subUnitId, e.row, e.col, e.customRangeId);
1158
1008
  if (!d || !((l = d.rects) != null && l.length))
1159
1009
  return;
1160
1010
  r = d.customRange, s = d.label, this._textSelectionManagerService.replaceTextRanges([
@@ -1169,7 +1019,7 @@ let G = class extends Y {
1169
1019
  i
1170
1020
  );
1171
1021
  } else {
1172
- const d = this._univerInstanceService.getUnit(n, k.UNIVER_SHEET), _ = d == null ? void 0 : d.getSheetBySheetId(i), I = _ == null ? void 0 : _.getCellRaw(e.row, e.col), f = d == null ? void 0 : d.getStyles().getStyleByCell(I), w = f == null ? void 0 : f.tr, a = Hr(this._injector, e.unitId, e.subUnitId, e.row, e.col, e.customRangeId);
1022
+ const d = this._univerInstanceService.getUnit(n, k.UNIVER_SHEET), _ = d == null ? void 0 : d.getSheetBySheetId(i), I = _ == null ? void 0 : _.getCellRaw(e.row, e.col), f = d == null ? void 0 : d.getStyles().getStyleByCell(I), w = f == null ? void 0 : f.tr, a = Pr(this._injector, e.unitId, e.subUnitId, e.row, e.col, e.customRangeId);
1173
1023
  if (!a || !((g = a.rects) != null && g.length))
1174
1024
  return;
1175
1025
  r = a.customRange, s = a.label, w ? this._currentEditingPopup = this._sheetCanvasPopManagerService.attachPopupToCell(
@@ -1203,28 +1053,28 @@ let G = class extends Y {
1203
1053
  n && (!e || e === n.type) && ((i = this._currentEditingPopup) == null || i.dispose(), this._currentEditing$.next(null));
1204
1054
  }
1205
1055
  };
1206
- G = xi([
1207
- oe(0, y(Mr)),
1056
+ G = Ti([
1057
+ oe(0, y(Er)),
1208
1058
  oe(1, y(lt)),
1209
1059
  oe(2, K),
1210
1060
  oe(3, te),
1211
1061
  oe(4, y(He)),
1212
- oe(5, y(ni)),
1213
- oe(6, ht)
1062
+ oe(5, y(Hr)),
1063
+ oe(6, pt)
1214
1064
  ], G);
1215
1065
  var Oe = /* @__PURE__ */ ((t) => (t[t.ALLOWED = 0] = "ALLOWED", t[t.DISABLED_BY_CELL = 1] = "DISABLED_BY_CELL", t[t.ALLOW_ON_EDITING = 2] = "ALLOW_ON_EDITING", t))(Oe || {});
1216
- const Ni = /* @__PURE__ */ new Set([
1066
+ const Oi = /* @__PURE__ */ new Set([
1217
1067
  St.CHECKBOX,
1218
1068
  St.LIST,
1219
1069
  St.LIST_MULTIPLE
1220
- ]), Vt = (t, e, n, i) => {
1070
+ ]), At = (t, e, n, i) => {
1221
1071
  var c, u, p, l, g;
1222
1072
  const r = e.getCell(n, i);
1223
1073
  if (r != null && r.f || r != null && r.si || (p = (u = (c = r == null ? void 0 : r.p) == null ? void 0 : c.body) == null ? void 0 : u.customBlocks) != null && p.length)
1224
1074
  return 1;
1225
1075
  const s = t.has(hn) ? t.get(hn) : null, o = s == null ? void 0 : s.getRuleByLocation(e.getUnitId(), e.getSheetId(), n, i);
1226
- return o && Ni.has(o.type) ? !0 : (g = (l = r == null ? void 0 : r.p) == null ? void 0 : l.drawingsOrder) != null && g.length ? 2 : 0;
1227
- }, Mi = (t) => {
1076
+ return o && Oi.has(o.type) ? !0 : (g = (l = r == null ? void 0 : r.p) == null ? void 0 : l.drawingsOrder) != null && g.length ? 2 : 0;
1077
+ }, xi = (t) => {
1228
1078
  const e = t.get(K).getCurrentUnitForType(k.UNIVER_SHEET);
1229
1079
  if (!e)
1230
1080
  return !0;
@@ -1232,14 +1082,14 @@ const Ni = /* @__PURE__ */ new Set([
1232
1082
  if (!i.length)
1233
1083
  return !0;
1234
1084
  const r = i[0].range.startRow, s = i[0].range.startColumn;
1235
- return Vt(t, n, r, s) === 1;
1236
- }, Ui = (t) => {
1085
+ return At(t, n, r, s) === 1;
1086
+ }, Ni = (t) => {
1237
1087
  const e = t.get(He), n = t.get(K), i = e.getTextRanges();
1238
1088
  if (!(i != null && i.length))
1239
1089
  return !0;
1240
1090
  const r = n.getCurrentUnitForType(k.UNIVER_DOC);
1241
1091
  return !!(!r || i.every((o) => o.collapsed) || !r.getSelfOrHeaderFooterModel(i[0].segmentId).getBody());
1242
- }, $t = {
1092
+ }, Vt = {
1243
1093
  type: dt.OPERATION,
1244
1094
  id: "sheet.operation.open-hyper-link-edit-panel",
1245
1095
  handler(t, e) {
@@ -1248,13 +1098,13 @@ const Ni = /* @__PURE__ */ new Set([
1248
1098
  const n = t.get(G);
1249
1099
  return e.customRangeId ? n.startEditing(e) : n.startAddEditing(e), !0;
1250
1100
  }
1251
- }, Je = {
1101
+ }, qe = {
1252
1102
  type: dt.OPERATION,
1253
1103
  id: "sheet.operation.close-hyper-link-popup",
1254
1104
  handler(t) {
1255
1105
  return t.get(G).endEditing(), !0;
1256
1106
  }
1257
- }, Bt = {
1107
+ }, $t = {
1258
1108
  type: dt.OPERATION,
1259
1109
  id: "sheet.operation.insert-hyper-link",
1260
1110
  handler(t) {
@@ -1266,7 +1116,7 @@ const Ni = /* @__PURE__ */ new Set([
1266
1116
  if (!o)
1267
1117
  return !1;
1268
1118
  const c = o.range.startRow, u = o.range.startColumn, p = i.isVisible(), l = ((g = e.getFocusedUnit()) == null ? void 0 : g.getUnitId()) === x;
1269
- return r.executeCommand($t.id, {
1119
+ return r.executeCommand(Vt.id, {
1270
1120
  unitId: n.unitId,
1271
1121
  subUnitId: n.subUnitId,
1272
1122
  row: c,
@@ -1278,79 +1128,229 @@ const Ni = /* @__PURE__ */ new Set([
1278
1128
  type: dt.OPERATION,
1279
1129
  id: "sheet.operation.insert-hyper-link-toolbar",
1280
1130
  handler(t) {
1281
- if (Mi(t))
1131
+ if (xi(t))
1282
1132
  return !1;
1283
1133
  const e = t.get(ne);
1284
- return t.get(G).currentEditing ? e.executeCommand(Je.id) : e.executeCommand(Bt.id);
1134
+ return t.get(G).currentEditing ? e.executeCommand(qe.id) : e.executeCommand($t.id);
1285
1135
  }
1286
- }, Ft = (t, e = x) => {
1136
+ }, Bt = "SHEET_HYPER_LINK_UI_PLUGIN";
1137
+ var Mi = Object.getOwnPropertyDescriptor, Ui = (t, e, n, i) => {
1138
+ for (var r = i > 1 ? void 0 : i ? Mi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1139
+ (o = t[s]) && (r = o(r) || r);
1140
+ return r;
1141
+ }, je = (t, e) => (n, i) => e(n, i, t);
1142
+ let Je = class extends Y {
1143
+ constructor(e, n, i, r) {
1144
+ super();
1145
+ $(this, "_plainTextFilter", /* @__PURE__ */ new Set());
1146
+ $(this, "_copyInfo");
1147
+ this._sheetClipboardService = e, this._hyperLinkModel = n, this._injector = i, this._resolverService = r, this._initCopyPaste(), this.disposeWithMe(() => {
1148
+ this._plainTextFilter.clear();
1149
+ });
1150
+ }
1151
+ registerPlainTextFilter(e) {
1152
+ this._plainTextFilter.add(e);
1153
+ }
1154
+ removePlainTextFilter(e) {
1155
+ this._plainTextFilter.delete(e);
1156
+ }
1157
+ /* If return false the process of paste text will be stop */
1158
+ _filterPlainText(e) {
1159
+ return Array.from(this._plainTextFilter).every((n) => n(e));
1160
+ }
1161
+ _initCopyPaste() {
1162
+ this._sheetClipboardService.addClipboardHook({
1163
+ id: Bt,
1164
+ onBeforeCopy: (e, n, i) => this._collect(e, n, i),
1165
+ onPasteCells: (e, n, i, r) => {
1166
+ const { copyType: s = wr.COPY, pasteType: o } = r, { range: c } = e || {}, { range: u, unitId: p, subUnitId: l } = n;
1167
+ return this._generateMutations(u, { copyType: s, pasteType: o, copyRange: c, unitId: p, subUnitId: l });
1168
+ },
1169
+ onPastePlainText: (e, n) => {
1170
+ const i = this._filterPlainText(n);
1171
+ if (Ye(n) && i) {
1172
+ const { range: r, unitId: s, subUnitId: o } = e, { ranges: [c], mapFunc: u } = Pt([r]), p = [], l = [];
1173
+ return yn.foreach(c, (g, d) => {
1174
+ const { row: _, col: I } = u(g, d), f = this._hyperLinkModel.getHyperLinkByLocation(s, o, _, I);
1175
+ f && p.push({
1176
+ id: Me.id,
1177
+ params: {
1178
+ unitId: s,
1179
+ subUnitId: o,
1180
+ id: f.id
1181
+ }
1182
+ }), f && l.push({
1183
+ id: Ue.id,
1184
+ params: {
1185
+ unitId: s,
1186
+ subUnitId: o,
1187
+ link: f
1188
+ }
1189
+ });
1190
+ }), { redos: p, undos: l };
1191
+ }
1192
+ return { undos: [], redos: [] };
1193
+ },
1194
+ priority: 99
1195
+ });
1196
+ }
1197
+ _collect(e, n, i) {
1198
+ const r = new ir();
1199
+ this._copyInfo = {
1200
+ unitId: e,
1201
+ subUnitId: n,
1202
+ matrix: r
1203
+ };
1204
+ const s = this._injector.invoke((u) => dr(i, u, e, n));
1205
+ if (!s)
1206
+ return;
1207
+ const { rows: o, cols: c } = s;
1208
+ o.forEach((u, p) => {
1209
+ c.forEach((l, g) => {
1210
+ var _;
1211
+ const d = this._hyperLinkModel.getHyperLinkByLocation(e, n, u, l);
1212
+ r.setValue(p, g, (_ = d == null ? void 0 : d.id) != null ? _ : "");
1213
+ });
1214
+ });
1215
+ }
1216
+ // eslint-disable-next-line max-lines-per-function
1217
+ _generateMutations(e, n) {
1218
+ if (!this._copyInfo)
1219
+ return { redos: [], undos: [] };
1220
+ if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !n.copyRange)
1221
+ return { redos: [], undos: [] };
1222
+ if ([
1223
+ Be.SPECIAL_PASTE_COL_WIDTH,
1224
+ Be.SPECIAL_PASTE_VALUE,
1225
+ Be.SPECIAL_PASTE_FORMAT,
1226
+ Be.SPECIAL_PASTE_FORMULA
1227
+ ].includes(n.pasteType))
1228
+ return { redos: [], undos: [] };
1229
+ const { unitId: r, subUnitId: s } = this._copyInfo, o = [], c = [], { ranges: [u, p], mapFunc: l } = Pt([n.copyRange, e]);
1230
+ return br(u, p, !0).forEach(({ startRange: d }) => {
1231
+ var _;
1232
+ (_ = this._copyInfo) == null || _.matrix.forValue((I, f, w) => {
1233
+ const a = ye.getPositionRange(
1234
+ {
1235
+ startRow: I,
1236
+ endRow: I,
1237
+ startColumn: f,
1238
+ endColumn: f
1239
+ },
1240
+ d
1241
+ ), b = this._hyperLinkModel.getHyperLink(r, s, w), { row: M, col: T } = l(a.startRow, a.startColumn), P = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, M, T), D = Ce.generateRandomId();
1242
+ P && o.push({
1243
+ id: Me.id,
1244
+ params: {
1245
+ unitId: n.unitId,
1246
+ subUnitId: n.subUnitId,
1247
+ id: P.id
1248
+ }
1249
+ }), b && (o.push({
1250
+ id: Ue.id,
1251
+ params: {
1252
+ unitId: n.unitId,
1253
+ subUnitId: n.subUnitId,
1254
+ link: {
1255
+ ...b,
1256
+ id: D,
1257
+ row: M,
1258
+ column: T
1259
+ }
1260
+ }
1261
+ }), c.push({
1262
+ id: Me.id,
1263
+ params: {
1264
+ unitId: n.unitId,
1265
+ subUnitId: n.subUnitId,
1266
+ id: D
1267
+ }
1268
+ })), P && c.push({
1269
+ id: Ue.id,
1270
+ params: {
1271
+ unitId: n.unitId,
1272
+ subUnitId: n.subUnitId,
1273
+ link: P
1274
+ }
1275
+ });
1276
+ });
1277
+ }), { redos: o, undos: c };
1278
+ }
1279
+ };
1280
+ Je = Ui([
1281
+ je(0, Lr),
1282
+ je(1, y(gt)),
1283
+ je(2, y(lt)),
1284
+ je(3, y(ue))
1285
+ ], Je);
1286
+ const Ft = (t, e = x) => {
1287
1287
  var r;
1288
- const n = t.get(K), i = (r = t.get(De).getRenderById(e)) == null ? void 0 : r.with(xn);
1289
- return i ? i.textSelectionInner$.pipe(Ht(() => {
1288
+ const n = t.get(K), i = (r = t.get(De).getRenderById(e)) == null ? void 0 : r.with(bn);
1289
+ return i ? i.textSelectionInner$.pipe(Ut(() => {
1290
1290
  const o = t.get(te).getEditCellState();
1291
1291
  if (!o)
1292
1292
  return !0;
1293
1293
  const c = Tt(n, { unitId: o.unitId, subUnitId: o.sheetId });
1294
- return !(c != null && c.worksheet) || Vt(t, c.worksheet, o.row, o.column) === 1 ? !0 : Ui(t);
1294
+ return !(c != null && c.worksheet) || At(t, c.worksheet, o.row, o.column) === 1 ? !0 : Ni(t);
1295
1295
  })) : ae(!0);
1296
1296
  }, Bn = (t) => {
1297
1297
  var r;
1298
1298
  const e = t.get(K), n = t.has(te) ? t.get(te) : null;
1299
1299
  return ((r = n == null ? void 0 : n.currentEditCellState$.pipe(
1300
- Ht((s) => {
1300
+ Ut((s) => {
1301
1301
  if (!s)
1302
1302
  return Oe.DISABLED_BY_CELL;
1303
1303
  const o = Tt(e, { unitId: s.unitId, subUnitId: s.sheetId });
1304
- return o ? Vt(t, o.worksheet, s.row, s.column) : Oe.DISABLED_BY_CELL;
1304
+ return o ? At(t, o.worksheet, s.row, s.column) : Oe.DISABLED_BY_CELL;
1305
1305
  }),
1306
- Ue((s) => {
1306
+ Ne((s) => {
1307
1307
  if (s === Oe.DISABLED_BY_CELL)
1308
1308
  return ae(!0);
1309
1309
  const o = n ? n.visible$ : ae(null);
1310
- return ai([o, e.getCurrentTypeOfUnit$(k.UNIVER_DOC)]).pipe(
1311
- Ue(
1310
+ return Xr([o, e.getCurrentTypeOfUnit$(k.UNIVER_DOC)]).pipe(
1311
+ Ne(
1312
1312
  ([c, u]) => c != null && c.visible ? (u == null ? void 0 : u.getUnitId()) === sr ? ae(!0) : Ft(t, Se) : ae(s !== Oe.ALLOWED)
1313
1313
  )
1314
1314
  );
1315
1315
  })
1316
1316
  )) != null ? r : ae(!0)).pipe(
1317
- Ue((s) => s ? ae(!0) : Ar(t, { workbookTypes: [Mt], worksheetTypes: [xt, Pn, Nt], rangeTypes: [Ot] }, !0))
1317
+ Ne((s) => s ? ae(!0) : Tr(t, { workbookTypes: [Mt], worksheetTypes: [xt, Pn, Nt], rangeTypes: [Ot] }, !0))
1318
1318
  );
1319
1319
  }, Qe = {
1320
- commandId: Bt.id,
1321
- type: On.BUTTON,
1320
+ commandId: $t.id,
1321
+ type: Tn.BUTTON,
1322
1322
  title: "hyperLink.menu.add",
1323
1323
  icon: "LinkIcon"
1324
1324
  }, et = (t) => `${t}-zen-editor`, Hi = (t) => ({
1325
1325
  ...Qe,
1326
1326
  id: Qe.commandId,
1327
- hidden$: gt(t, k.UNIVER_SHEET),
1327
+ hidden$: ht(t, k.UNIVER_SHEET),
1328
1328
  disabled$: Bn(t)
1329
1329
  // disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetEditPermission, WorksheetSetCellValuePermission, WorksheetInsertHyperlinkPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })),
1330
1330
  }), Di = (t) => ({
1331
1331
  ...Qe,
1332
1332
  id: et(Qe.commandId),
1333
- hidden$: gt(t, k.UNIVER_DOC, x),
1333
+ hidden$: ht(t, k.UNIVER_DOC, x),
1334
1334
  disabled$: Ft(t)
1335
1335
  }), tt = {
1336
1336
  tooltip: "hyperLink.form.addTitle",
1337
1337
  commandId: ce.id,
1338
- type: On.BUTTON,
1338
+ type: Tn.BUTTON,
1339
1339
  icon: "LinkIcon"
1340
1340
  }, Ai = (t) => ({
1341
1341
  ...tt,
1342
1342
  id: tt.commandId,
1343
- hidden$: gt(t, k.UNIVER_SHEET),
1343
+ hidden$: ht(t, k.UNIVER_SHEET),
1344
1344
  disabled$: Bn(t)
1345
1345
  }), Vi = (t) => ({
1346
1346
  ...tt,
1347
1347
  id: et(tt.commandId),
1348
- hidden$: gt(t, k.UNIVER_DOC, x),
1348
+ hidden$: ht(t, k.UNIVER_DOC, x),
1349
1349
  disabled$: Ft(t)
1350
1350
  }), Fn = {
1351
1351
  id: ce.id,
1352
- binding: Lt.K | Yr.CTRL_COMMAND,
1353
- preconditions: Dr
1352
+ binding: Lt.K | Br.CTRL_COMMAND,
1353
+ preconditions: kr
1354
1354
  };
1355
1355
  var $i = Object.getOwnPropertyDescriptor, Bi = (t, e, n, i) => {
1356
1356
  for (var r = i > 1 ? void 0 : i ? $i(e, n) : e, s = t.length - 1, o; s >= 0; s--)
@@ -1367,7 +1367,7 @@ let nt = class extends Y {
1367
1367
  const { source: s, target: o, unitId: c, subUnitId: u } = i, p = Pt([s, o]), [l, g] = p.ranges, { mapFunc: d } = p, _ = {
1368
1368
  row: l.startRow,
1369
1369
  col: l.startColumn
1370
- }, I = $r(l, g), f = [], w = [];
1370
+ }, I = xr(l, g), f = [], w = [];
1371
1371
  return I.forEach((a) => {
1372
1372
  const b = a.repeatStartCell, M = a.relativeRange, T = {
1373
1373
  startRow: _.row,
@@ -1399,14 +1399,14 @@ let nt = class extends Y {
1399
1399
  P
1400
1400
  ), { row: Re, col: Pe } = d(Ee.startRow, Ee.startColumn), Ve = Ce.generateRandomId(), he = this._hyperLinkModel.getHyperLinkByLocation(c, u, Re, Pe);
1401
1401
  he && f.push({
1402
- id: Ne.id,
1402
+ id: Me.id,
1403
1403
  params: {
1404
1404
  unitId: c,
1405
1405
  subUnitId: u,
1406
1406
  id: he.id
1407
1407
  }
1408
1408
  }), (be.COPY === r || be.SERIES === r) && ie && (f.push({
1409
- id: Me.id,
1409
+ id: Ue.id,
1410
1410
  params: {
1411
1411
  unitId: c,
1412
1412
  subUnitId: u,
@@ -1418,14 +1418,14 @@ let nt = class extends Y {
1418
1418
  }
1419
1419
  }
1420
1420
  }), w.push({
1421
- id: Ne.id,
1421
+ id: Me.id,
1422
1422
  params: {
1423
1423
  unitId: c,
1424
1424
  subUnitId: u,
1425
1425
  id: Ve
1426
1426
  }
1427
1427
  })), he && w.push({
1428
- id: Me.id,
1428
+ id: Ue.id,
1429
1429
  params: {
1430
1430
  unitId: c,
1431
1431
  subUnitId: u,
@@ -1438,15 +1438,15 @@ let nt = class extends Y {
1438
1438
  redos: f
1439
1439
  };
1440
1440
  }, n = {
1441
- id: Dt,
1441
+ id: Bt,
1442
1442
  onFillData: (i, r, s) => s === be.COPY || s === be.ONLY_FORMAT || s === be.SERIES ? e(i, s) : t()
1443
1443
  };
1444
1444
  this.disposeWithMe(this._autoFillService.addHook(n));
1445
1445
  }
1446
1446
  };
1447
1447
  nt = Bi([
1448
- fn(0, Vr),
1449
- fn(1, y(pt))
1448
+ fn(0, Or),
1449
+ fn(1, y(gt))
1450
1450
  ], nt);
1451
1451
  var Fi = Object.getOwnPropertyDescriptor, ji = (t, e, n, i) => {
1452
1452
  for (var r = i > 1 ? void 0 : i ? Fi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
@@ -1513,7 +1513,7 @@ let it = class extends Y {
1513
1513
  _initHoverListener() {
1514
1514
  this.disposeWithMe(
1515
1515
  // hover over not editing cell
1516
- this._hoverManagerService.currentRichText$.pipe(Ge(200)).subscribe((t) => {
1516
+ this._hoverManagerService.currentRichText$.pipe(We(200)).subscribe((t) => {
1517
1517
  var T, P, D;
1518
1518
  if (!t || ((T = t.customRange) == null ? void 0 : T.rangeType) !== xe.HYPERLINK) {
1519
1519
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
@@ -1525,7 +1525,7 @@ let it = class extends Y {
1525
1525
  const o = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET), c = o == null ? void 0 : o.getSheetBySheetId(n);
1526
1526
  if (!c)
1527
1527
  return;
1528
- if (!s.with(Fr).active) {
1528
+ if (!s.with(Mr).active) {
1529
1529
  this._sheetsHyperLinkPopupService.hideCurrentPopup(v.VIEWING);
1530
1530
  return;
1531
1531
  }
@@ -1562,7 +1562,7 @@ let it = class extends Y {
1562
1562
  _initHoverEditingListener() {
1563
1563
  let t = null;
1564
1564
  this.disposeWithMe(
1565
- this._editorBridgeService.currentEditCellState$.pipe(Ue((e) => this._editorBridgeService.visible$.pipe(Ht((n) => ({ visible: n, state: e }))))).subscribe(({ visible: e, state: n }) => {
1565
+ this._editorBridgeService.currentEditCellState$.pipe(Ne((e) => this._editorBridgeService.visible$.pipe(Ut((n) => ({ visible: n, state: e }))))).subscribe(({ visible: e, state: n }) => {
1566
1566
  if (!n || n.editorUnitId !== Se)
1567
1567
  return;
1568
1568
  if (!e.visible) {
@@ -1572,8 +1572,8 @@ let it = class extends Y {
1572
1572
  const { editorUnitId: i, unitId: r, sheetId: s, row: o, column: c } = n, u = this._renderManagerService.getRenderById(i);
1573
1573
  if (!u)
1574
1574
  return;
1575
- const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: s, row: o, col: c }), d = u.with(pn);
1576
- l && (t == null || t.unsubscribe(), t = d.hoverCustomRanges$.pipe(Ge(200)).subscribe((_) => {
1575
+ const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: s, row: o, col: c }), d = u.with(ln);
1576
+ l && (t == null || t.unsubscribe(), t = d.hoverCustomRanges$.pipe(We(200)).subscribe((_) => {
1577
1577
  var b, M;
1578
1578
  const I = _.find((T) => T.range.rangeType === xe.HYPERLINK);
1579
1579
  if (!I) {
@@ -1613,9 +1613,9 @@ let it = class extends Y {
1613
1613
  })
1614
1614
  ), this.disposeWithMe(
1615
1615
  this._univerInstanceService.focused$.pipe(
1616
- Ue((t) => {
1616
+ Ne((t) => {
1617
1617
  const e = t === x ? this._renderManagerService.getRenderById(t) : null;
1618
- return e ? e.with(pn).hoverCustomRanges$.pipe(Ge(200)) : new ci((n) => {
1618
+ return e ? e.with(ln).hoverCustomRanges$.pipe(We(200)) : new qr((n) => {
1619
1619
  n.next(null);
1620
1620
  });
1621
1621
  })
@@ -1653,7 +1653,7 @@ let it = class extends Y {
1653
1653
  }
1654
1654
  };
1655
1655
  it = Zi([
1656
- W(0, y(Br)),
1656
+ W(0, y(Nr)),
1657
1657
  W(1, y(G)),
1658
1658
  W(2, y(De)),
1659
1659
  W(3, y(or)),
@@ -1662,7 +1662,7 @@ it = Zi([
1662
1662
  W(6, te),
1663
1663
  W(7, y(He)),
1664
1664
  W(8, K),
1665
- W(9, ht)
1665
+ W(9, pt)
1666
1666
  ], it);
1667
1667
  var Gi = Object.getOwnPropertyDescriptor, jn = (t, e, n, i) => {
1668
1668
  for (var r = i > 1 ? void 0 : i ? Gi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
@@ -1678,13 +1678,13 @@ let bt = class extends Y {
1678
1678
  var e;
1679
1679
  (e = this._context.mainComponent) == null || e.makeForceDirty();
1680
1680
  };
1681
- this.disposeWithMe(this._hyperLinkModel.linkUpdate$.pipe(Ge(16)).subscribe(() => {
1681
+ this.disposeWithMe(this._hyperLinkModel.linkUpdate$.pipe(We(16)).subscribe(() => {
1682
1682
  t();
1683
1683
  }));
1684
1684
  }
1685
1685
  };
1686
1686
  bt = jn([
1687
- wt(1, y(pt))
1687
+ wt(1, y(gt))
1688
1688
  ], bt);
1689
1689
  let st = class extends Y {
1690
1690
  constructor(t, e) {
@@ -1708,10 +1708,10 @@ let st = class extends Y {
1708
1708
  };
1709
1709
  st = jn([
1710
1710
  wt(0, y(Cr)),
1711
- wt(1, y(pt))
1711
+ wt(1, y(gt))
1712
1712
  ], st);
1713
1713
  const Ki = {
1714
- [qr.MEDIA]: {
1714
+ [Wr.MEDIA]: {
1715
1715
  [ce.id]: {
1716
1716
  order: 1,
1717
1717
  menuItemFactory: Ai
@@ -1721,8 +1721,8 @@ const Ki = {
1721
1721
  menuItemFactory: Vi
1722
1722
  }
1723
1723
  },
1724
- [zr.MAIN_AREA]: {
1725
- [Xr.OTHERS]: {
1724
+ [Fr.MAIN_AREA]: {
1725
+ [jr.OTHERS]: {
1726
1726
  order: 1,
1727
1727
  [ce.id]: {
1728
1728
  order: 0,
@@ -1746,18 +1746,18 @@ let ot = class extends Y {
1746
1746
  }
1747
1747
  _initComponents() {
1748
1748
  [
1749
- [qe.componentKey, qe],
1750
1749
  [Xe.componentKey, Xe],
1751
- ["LinkIcon", At]
1750
+ [ze.componentKey, ze],
1751
+ ["LinkIcon", Dt]
1752
1752
  ].forEach(([t, e]) => {
1753
1753
  this._componentManager.register(t, e);
1754
1754
  });
1755
1755
  }
1756
1756
  _initCommands() {
1757
1757
  [
1758
+ Vt,
1759
+ qe,
1758
1760
  $t,
1759
- Je,
1760
- Bt,
1761
1761
  ce
1762
1762
  ].forEach((t) => {
1763
1763
  this._commandService.registerCommand(t);
@@ -1771,11 +1771,11 @@ let ot = class extends Y {
1771
1771
  }
1772
1772
  };
1773
1773
  ot = zi([
1774
- ke(0, y(Jr)),
1774
+ ke(0, y(Zr)),
1775
1775
  ke(1, ne),
1776
- ke(2, Qr),
1776
+ ke(2, Gr),
1777
1777
  ke(3, y(lt)),
1778
- ke(4, y(ei))
1778
+ ke(4, y(Kr))
1779
1779
  ], ot);
1780
1780
  var Xi = Object.getOwnPropertyDescriptor, qi = (t, e, n, i) => {
1781
1781
  for (var r = i > 1 ? void 0 : i ? Xi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
@@ -1795,7 +1795,7 @@ let at = class extends Y {
1795
1795
  }
1796
1796
  };
1797
1797
  at = qi([
1798
- _n(0, y(Ut)),
1798
+ _n(0, y(Ht)),
1799
1799
  _n(1, y(ue))
1800
1800
  ], at);
1801
1801
  var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, es = (t, e, n) => e in t ? Ji(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ts = (t, e, n, i) => {
@@ -1822,31 +1822,31 @@ let ct = class extends ur {
1822
1822
  [it],
1823
1823
  [ot],
1824
1824
  [nt],
1825
- [ze],
1825
+ [Je],
1826
1826
  [rt],
1827
1827
  [at]
1828
1828
  ].forEach((e) => this._injector.add(e)), this._injector.get(st);
1829
1829
  }
1830
1830
  onReady() {
1831
- this._injector.get(De).registerRenderModule(k.UNIVER_SHEET, [bt]), this._injector.get(nt), this._injector.get(ze), this._injector.get(ot);
1831
+ this._injector.get(De).registerRenderModule(k.UNIVER_SHEET, [bt]), this._injector.get(nt), this._injector.get(Je), this._injector.get(ot);
1832
1832
  }
1833
1833
  onRendered() {
1834
1834
  this._injector.get(rt), this._injector.get(at), this._injector.get(it);
1835
1835
  }
1836
1836
  };
1837
- Wn(ct, "pluginName", Dt);
1837
+ Wn(ct, "pluginName", Bt);
1838
1838
  Wn(ct, "type", k.UNIVER_SHEET);
1839
1839
  ct = ts([
1840
- cr(kr, ii),
1840
+ cr(li, Ar),
1841
1841
  In(1, y(lt)),
1842
1842
  In(2, Cn)
1843
1843
  ], ct);
1844
1844
  export {
1845
- Je as CloseHyperLinkPopupOperation,
1846
- Bt as InsertHyperLinkOperation,
1845
+ qe as CloseHyperLinkPopupOperation,
1846
+ $t as InsertHyperLinkOperation,
1847
1847
  Fn as InsertLinkShortcut,
1848
- $t as OpenHyperLinkEditPanelOperation,
1849
- ze as SheetsHyperLinkCopyPasteController,
1848
+ Vt as OpenHyperLinkEditPanelOperation,
1849
+ Je as SheetsHyperLinkCopyPasteController,
1850
1850
  G as SheetsHyperLinkPopupService,
1851
1851
  ue as SheetsHyperLinkResolverService,
1852
1852
  Un as SheetsHyperLinkSidePanelService,